mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix make.py temp files cleanup (#8189)
This commit is contained in:
parent
eeba8a8dbf
commit
88e08dc130
@ -592,7 +592,9 @@ def get_project_version(version_increments=[]):
|
||||
|
||||
|
||||
def replace_file(filePath, oldSubstring, newSubstring):
|
||||
fh, absPath = mkstemp()
|
||||
global work_drive
|
||||
fh, absPath = mkstemp(None, None, work_drive + "temp")
|
||||
os.close(fh)
|
||||
with open(absPath, "w", encoding="utf-8") as newFile:
|
||||
with open(filePath, encoding="utf-8") as oldFile:
|
||||
for line in oldFile:
|
||||
|
Loading…
Reference in New Issue
Block a user