Fix ligo export log

This commit is contained in:
kaetemi 2019-05-13 09:33:01 +08:00
parent 8bae2ef613
commit 2d29e7224f

View file

@ -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