Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20131e commit 246beb2Copy full SHA for 246beb2
1 file changed
Doc/tools/mkhowto
@@ -43,7 +43,6 @@ import re
43
import shutil
44
import string
45
import sys
46
-import tempfile
47
48
49
if not hasattr(os.path, "abspath"):
@@ -265,10 +264,12 @@ class Job:
265
264
self.log_filename = os.path.abspath(self.doc + ".how")
266
if os.path.exists(self.log_filename):
267
os.unlink(self.log_filename)
268
- if os.path.exists(self.doc + ".l2h"):
269
- self.l2h_aux_init_file = tempfile.mktemp()
270
- else:
271
- self.l2h_aux_init_file = self.doc + ".l2h"
+ l2hconf = self.doc + ".l2h"
+ if os.path.exists(l2hconf):
+ if os.path.exists(l2hconf + "~"):
+ os.unlink(l2hconf + "~")
+ os.rename(l2hconf, l2hconf + "~")
272
+ self.l2h_aux_init_file = self.doc + ".l2h"
273
self.write_l2h_aux_init_file()
274
275
def build(self):
0 commit comments