Fix ligo export log

kaetemi-develop
kaetemi 6 years ago
parent 8bae2ef613
commit 2d29e7224f

@ -29,7 +29,9 @@ sys.path.append("../../configuration")
if os.path.isfile("log.log"): if os.path.isfile("log.log"):
os.remove("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 scripts import *
from buildsite import * from buildsite import *
from process import * from process import *
@ -140,6 +142,9 @@ if LigoExportLand == "" or LigoExportOnePass == 1:
printLog(log, "") printLog(log, "")
log.close() log.close()
if os.path.isfile("log.log"):
os.remove("log.log")
shutil.move("temp_log.log", "log.log")
# end of file # end of file

Loading…
Cancel
Save