diff --git a/utils.py b/utils.py index 1f786c4498f2cc46a26bda4e75c972056b85c144..72ea1e22a308687f98e3ecc93d3a3267361b36fc 100644 --- a/utils.py +++ b/utils.py @@ -36,6 +36,9 @@ def exec_cmd(cmd, log_output=True, get_output=True): out = out.strip() if log_output: log(out) + elif log_output: + sys.stdout.flush() + sys.stderr.flush() return p.returncode, out