From 93a5dd064133c4617b851891d252c75f6e589114 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 15 Mar 2019 19:36:13 +0100 Subject: [PATCH] Do not overwrite config.sby in reusedir mode Signed-off-by: Clifford Wolf --- sbysrc/sby_core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: -- 2.30.2