mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-05 22:14: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:
parent
71e5dbabd6
commit
b5eb5b3c78
|
@ -33,7 +33,19 @@ class SbyTask:
|
||||||
self.job = job
|
self.job = job
|
||||||
self.info = info
|
self.info = info
|
||||||
self.deps = deps
|
self.deps = deps
|
||||||
self.cmdline = cmdline
|
if os.name == "posix":
|
||||||
|
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 = []
|
||||||
|
|
Loading…
Reference in a new issue