From 381bd244c08f1bcd93c9443383f083d13a1b11fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20Ya=C4=9Fc=C4=B1o=C4=9Flu?= <127638851+adzetto@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:20:01 +0300 Subject: [PATCH] Run commands with Popen so run_cmds works with parallel=False --- openfast_toolbox/case_generation/runner.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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