Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
log info
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 9, 2016
1 parent 61407f2 commit acb57f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pymyinstall/installhelper/run_cmd.py
Expand Up @@ -211,6 +211,7 @@ def run_cmd_private(cmd, sin="", shell=True, wait=False, log_error=True,
skip_waiting = False

if old_behavior:
fLOG("[run_cmd] old_behvior")
for line in pproc.stdout:
if fLOG is not None:
fLOG(line.decode(encoding, errors=encerror).strip("\n"))
Expand Down Expand Up @@ -258,6 +259,7 @@ def run_cmd_private(cmd, sin="", shell=True, wait=False, log_error=True,
if fLOG is not None:
fLOG("input", [input])

fLOG("[run_cmd] communicate", input, catch_exit)
if catch_exit:
try:
if sys.version_info[0] == 2:
Expand Down Expand Up @@ -286,6 +288,7 @@ def run_cmd_private(cmd, sin="", shell=True, wait=False, log_error=True,
err = decode_outerr(stderrdata, encoding, encerror, cmd)
else:
# communicate is False: use of threads
fLOG("[run_cmd] thread")
if sin is not None and len(sin) > 0:
if change_path is not None:
os.chdir(current)
Expand Down

0 comments on commit acb57f7

Please sign in to comment.