From ea79f49121888352f1045f18ac7d9552b8b8009d Mon Sep 17 00:00:00 2001 From: Faraphel Date: Thu, 14 Jul 2022 22:26:07 +0200 Subject: [PATCH] set stderr to subprocess.PIPE to hide it from the shell --- source/wt/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/source/wt/__init__.py b/source/wt/__init__.py index 1ad1876..809aa02 100644 --- a/source/wt/__init__.py +++ b/source/wt/__init__.py @@ -121,6 +121,7 @@ def _run_popen(tools_path: Path | str, *args, universal_newlines=False) -> subpr [tools_path, *args], stdin=subprocess.PIPE, stdout=subprocess.PIPE, + stderr=subprocess.PIPE, creationflags=subprocess.CREATE_NO_WINDOW, bufsize=1 if universal_newlines else None, universal_newlines=universal_newlines,