mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
compiler: transparently handle Windows newlines in RunTool.
This commit is contained in:
parent
4f29d9134f
commit
9dc7efefe4
@ -28,7 +28,8 @@ class RunTool:
|
|||||||
for argument in self._pattern:
|
for argument in self._pattern:
|
||||||
cmdline.append(argument.format(**self._tempnames))
|
cmdline.append(argument.format(**self._tempnames))
|
||||||
|
|
||||||
process = subprocess.Popen(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
process = subprocess.Popen(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
|
universal_newlines=True)
|
||||||
stdout, stderr = process.communicate()
|
stdout, stderr = process.communicate()
|
||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
raise Exception("{} invocation failed: {}".
|
raise Exception("{} invocation failed: {}".
|
||||||
|
Loading…
Reference in New Issue
Block a user