added stdin support to _run_popen

This commit is contained in:
Faraphel 2022-07-10 23:36:50 +02:00
parent 803e9603e7
commit 4cb2aa7379

View file

@ -100,6 +100,7 @@ def _run_popen(tools_path: Path | str, *args) -> subprocess.Popen:
""" """
return subprocess.Popen( return subprocess.Popen(
[tools_path, *args], [tools_path, *args],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
creationflags=subprocess.CREATE_NO_WINDOW, creationflags=subprocess.CREATE_NO_WINDOW,
bufsize=1, bufsize=1,