X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=exec_utils.py;h=7e45d92377d553ad5c5343158f49c5366faf12b6;hb=044cc0cba99b861f4d7c02ee479888138ab83500;hp=7f23ecd16a40bcad9be70fe42c274eb4f0482369;hpb=02302bbd9363facb59c4df2c1f4013087702cfa6;p=python_utils.git diff --git a/exec_utils.py b/exec_utils.py index 7f23ecd..7e45d92 100644 --- a/exec_utils.py +++ b/exec_utils.py @@ -123,7 +123,9 @@ def cmd(command: str, timeout_seconds: Optional[float] = None) -> str: ret = subprocess.run( command, shell=True, - capture_output=True, + # capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, check=True, timeout=timeout_seconds, ).stdout