From: Clifford Wolf Date: Fri, 15 Mar 2019 18:36:13 +0000 (+0100) Subject: Do not overwrite config.sby in reusedir mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93a5dd064133c4617b851891d252c75f6e589114;p=SymbiYosys.git Do not overwrite config.sby in reusedir mode Signed-off-by: Clifford Wolf --- diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 631524c..59f18ef 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -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: