Subprocess stderr goes to stdout on Mac and Windows too

This commit is contained in:
Joe Rickerby
2020-11-22 10:35:40 +00:00
parent e84c6b2de0
commit 05d7c142e9
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ def call(args: Union[str, Sequence[Union[str, PathLike]]], env: Optional[Dict[st
else:
print('+ ' + ' '.join(shlex.quote(str(a)) for a in args))
return subprocess.check_call(args, env=env, cwd=cwd, shell=shell)
# run the process. Subprocess stderr is routed to stdout to keep output interleaved
return subprocess.check_call(args, env=env, cwd=cwd, shell=shell, stderr=subprocess.STDOUT)
class PythonConfiguration(NamedTuple):