3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00

Do not overwrite config.sby in reusedir mode

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-03-15 19:36:13 +01:00
parent ef26dff799
commit 93a5dd0641

View file

@ -191,6 +191,7 @@ class SbyJob:
print(line, file=self.logfile) print(line, file=self.logfile)
self.logfile.flush() self.logfile.flush()
if not reusedir:
with open("%s/config.sby" % workdir, "w") as f: with open("%s/config.sby" % workdir, "w") as f:
for line in sbyconfig: for line in sbyconfig:
print(line, file=f) print(line, file=f)