Commit 906d1eed by Sébastien Eustace

Fix Venv.run()

parent 9b64dc1b
...@@ -203,7 +203,10 @@ class Venv: ...@@ -203,7 +203,10 @@ class Venv:
try: try:
if not self.is_venv(): if not self.is_venv():
output = subprocess.check_output(cmd, **kwargs) output = subprocess.check_output(
cmd, stderr=subprocess.STDOUT,
**kwargs
)
else: else:
if self._windows: if self._windows:
kwargs['shell'] = True kwargs['shell'] = True
...@@ -215,7 +218,10 @@ class Venv: ...@@ -215,7 +218,10 @@ class Venv:
self.unset_env('PYTHONHOME') self.unset_env('PYTHONHOME')
self.unset_env('__PYVENV_LAUNCHER__') self.unset_env('__PYVENV_LAUNCHER__')
output = subprocess.check_output(cmd, **kwargs) output = subprocess.check_output(
cmd, stderr=subprocess.STDOUT,
**kwargs
)
except CalledProcessError as e: except CalledProcessError as e:
raise VenvCommandError(e) raise VenvCommandError(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment