From 215ffeb9bbda413372d49bb9e6c958ec1de221d2 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Sat, 26 Sep 2015 14:39:44 +0200 Subject: Fixed asymptote export. stdout was not being redirected into a pipe. --- support/lib/util.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'support') 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) -- cgit