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

Choose command separator for tasks based on OS.

Signed-off-by: William D. Jones <thor0505@comcast.net>
This commit is contained in:
William D. Jones 2019-03-15 23:14:12 -04:00
parent 71e5dbabd6
commit b5eb5b3c78

View file

@ -33,7 +33,19 @@ class SbyTask:
self.job = job self.job = job
self.info = info self.info = info
self.deps = deps self.deps = deps
if os.name == "posix":
self.cmdline = cmdline self.cmdline = cmdline
else:
replacements = {
";" : "&",
"{" : "(",
"}" : ")",
}
cmdline_copy = cmdline
for u, w in replacements.items():
cmdline_copy = cmdline_copy.replace(u, w)
self.cmdline = cmdline_copy
self.logfile = logfile self.logfile = logfile
self.noprintregex = None self.noprintregex = None
self.notify = [] self.notify = []