Skip to content
Permalink
Browse files

modifies log display in run_cmd

  • Loading branch information...
sdpython committed Mar 22, 2018
1 parent 25ff97b commit 1da6b2ea6e2f8da4d17cc96288e9fdad8086b2fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pyquickhelper/loghelper/run_cmd.py
@@ -373,11 +373,11 @@ def run_cmd(cmd, sin="", shell=sys.platform.startswith("win"), wait=False, log_e

if len(err) > 0 and log_error and fLOG is not None:
if "\n" in err:
fLOG(prefix_log + "error (log)")
fLOG(prefix_log + "[run_cmd] stderr (log)")
for eline in err.split("\n"):
fLOG(prefix_log + eline)
else:
fLOG(prefix_log + "error (log)\n%s" % err)
fLOG(prefix_log + "[run_cmd] stderr (log)\n%s" % err)

if change_path is not None:
os.chdir(current)

0 comments on commit 1da6b2e

Please sign in to comment.
You can’t perform that action at this time.