From: Scott Date: Fri, 21 Jan 2022 19:40:56 +0000 (-0800) Subject: Trying again to make sure all output is seen here. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=7913fe84341dbadfd0fe56834cf2ae55b3535365;p=python_utils.git Trying again to make sure all output is seen here. --- diff --git a/exec_utils.py b/exec_utils.py index b4e88bd..c1dbdcb 100644 --- a/exec_utils.py +++ b/exec_utils.py @@ -46,6 +46,8 @@ def cmd_showing_output(command: str, ) -> int: if char in line_enders: sys.stderr.flush() p.wait() + sys.stdout.flush() + sys.stderr.flush() return p.returncode