From fdc3ab07848c7b14a04fec814af02a467a1daafd Mon Sep 17 00:00:00 2001 From: Dystopian Date: Sat, 17 Apr 2021 21:08:18 +0400 Subject: [PATCH] Fix make.py temp files cleanup (#8189) --- tools/make.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/make.py b/tools/make.py index ca37369638..27c10529d7 100644 --- a/tools/make.py +++ b/tools/make.py @@ -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: