3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 06:04:06 +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,9 +191,10 @@ class SbyJob:
print(line, file=self.logfile)
self.logfile.flush()
with open("%s/config.sby" % workdir, "w") as f:
for line in sbyconfig:
print(line, file=f)
if not reusedir:
with open("%s/config.sby" % workdir, "w") as f:
for line in sbyconfig:
print(line, file=f)
def taskloop(self):
for task in self.tasks_pending: