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

Merge pull request from YosysHQ/windows_fix

Windows specific fixes
This commit is contained in:
Miodrag Milanović 2021-03-22 16:51:11 +01:00 committed by GitHub
commit 4db5d70c34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,11 +64,14 @@ class SbyTask:
"{" : "(",
"}" : ")",
}
cmdline_copy = cmdline
for u, w in replacements.items():
cmdline_copy = cmdline_copy.replace(u, w)
self.cmdline = cmdline_copy
parts = cmdline.split("'")
for i in range(len(parts)):
if i % 2 == 0:
cmdline_copy = parts[i]
for u, w in replacements.items():
cmdline_copy = cmdline_copy.replace(u, w)
parts[i] = cmdline_copy
self.cmdline = '"'.join(parts)
self.logfile = logfile
self.noprintregex = None
self.notify = []