set stderr to subprocess.PIPE to hide it from the shell

This commit is contained in:
Faraphel 2022-07-14 22:26:07 +02:00
parent 1881d579c9
commit ea79f49121

View file

@ -121,6 +121,7 @@ def _run_popen(tools_path: Path | str, *args, universal_newlines=False) -> subpr
[tools_path, *args], [tools_path, *args],
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
creationflags=subprocess.CREATE_NO_WINDOW, creationflags=subprocess.CREATE_NO_WINDOW,
bufsize=1 if universal_newlines else None, bufsize=1 if universal_newlines else None,
universal_newlines=universal_newlines, universal_newlines=universal_newlines,