From ad7bff393d38aaa15c84e51bd3c0222974efed38 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 27 Apr 2016 15:36:36 -0500 Subject: [PATCH] Make sure to capture stderr when using openmc.run() --- openmc/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/executor.py b/openmc/executor.py index edbbaddc40..fbd9e5d82a 100644 --- a/openmc/executor.py +++ b/openmc/executor.py @@ -10,7 +10,7 @@ if sys.version_info[0] >= 3: def _run(command, output, cwd): # Launch a subprocess p = subprocess.Popen(command, shell=True, cwd=cwd, stdout=subprocess.PIPE, - universal_newlines=True) + stderr=subprocess.STDOUT, universal_newlines=True) # Capture and re-print OpenMC output in real-time while True: