summaryrefslogtreecommitdiff
path: root/support/lib
diff options
context:
space:
mode:
Diffstat (limited to 'support/lib')
-rw-r--r--support/lib/util.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/lib/util.py b/support/lib/util.py
index 48bfd46..aea9835 100644
--- a/support/lib/util.py
+++ b/support/lib/util.py
@@ -66,8 +66,13 @@ def command_context(args, remove_env = [], set_env = { }, working_dir = None, us
for k, v in set_env.items():
env[k] = v
+ if use_stderr:
+ stderr = subprocess.PIPE
+ else:
+ stderr = None
+
try:
- process = subprocess.Popen(args, env = env, cwd = working_dir)
+ process = subprocess.Popen(args, env = env, cwd = working_dir, stderr = stderr)
process.wait()
except OSError as e:
raise UserError('Error running {}: {}', args[0], e)