From 2d29e7224fdab31b0773461613eb63c62ffa0440 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 13 May 2019 09:33:01 +0800 Subject: [PATCH] Fix ligo export log --- code/nel/tools/build_gamedata/processes/ligo/1_export.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/build_gamedata/processes/ligo/1_export.py b/code/nel/tools/build_gamedata/processes/ligo/1_export.py index 4077ddb1c..dc0e0d4b4 100755 --- a/code/nel/tools/build_gamedata/processes/ligo/1_export.py +++ b/code/nel/tools/build_gamedata/processes/ligo/1_export.py @@ -29,7 +29,9 @@ sys.path.append("../../configuration") if os.path.isfile("log.log"): os.remove("log.log") -log = open("log.log", "w") +if os.path.isfile("temp_log.log"): + os.remove("temp_log.log") +log = open("temp_log.log", "w") from scripts import * from buildsite import * from process import * @@ -140,6 +142,9 @@ if LigoExportLand == "" or LigoExportOnePass == 1: printLog(log, "") log.close() +if os.path.isfile("log.log"): + os.remove("log.log") +shutil.move("temp_log.log", "log.log") # end of file