diff --git a/openfast_toolbox/case_generation/runner.py b/openfast_toolbox/case_generation/runner.py index fb1994b..0addfba 100644 --- a/openfast_toolbox/case_generation/runner.py +++ b/openfast_toolbox/case_generation/runner.py @@ -111,13 +111,9 @@ def run_cmd(input_file_or_arglist, exe, wait=True, showOutputs=False, showComman STDOut= open(os.devnull, 'w') if showCommand: print('Running: '+' '.join(args)) + p=subprocess.Popen(args, stdout=STDOut, stderr=subprocess.STDOUT, shell=shell) if wait: - class Dummy(): - pass - p=Dummy() - p.returncode=subprocess.call(args , stdout=STDOut, stderr=subprocess.STDOUT, shell=shell) - else: - p=subprocess.Popen(args, stdout=STDOut, stderr=subprocess.STDOUT, shell=shell) + p.wait() # Storing some info into the process p.cmd = ' '.join(args) p.args = args