|
|
@@ -181,7 +181,7 @@ def run_cmd_check_output(cmd, input_text=None, extra_paths=None):
|
|
|
try:
|
|
|
if input_text:
|
|
|
input_text = input_text.encode()
|
|
|
- result = subprocess.run(cmd, capture_output=True, check=True, input=input_text)
|
|
|
+ result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, input=input_text)
|
|
|
return result.stdout + result.stderr
|
|
|
except (AttributeError, TypeError):
|
|
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
|