Skip to content

Commit

Permalink
subprocess.run does not understand capture_output flag in py3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 16, 2018
1 parent 92fc3aa commit 307ad11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/sconsUtils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def runExternal(cmd, fatal=False, msg=None):
shell = False

try:
retval = subprocess.run(cmd, capture_output=True, shell=shell, check=True, text=True)
retval = subprocess.run(cmd, shell=shell, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
check=True, text=True)
except subprocess.CalledProcessError as e:
if fatal:
raise RuntimeError(f"{msg}: {e.stderr}") from e
Expand Down

0 comments on commit 307ad11

Please sign in to comment.