Skip to content

Commit

Permalink
Ensure Python waits until pyccel-clean has finished
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Apr 17, 2024
1 parent 8bf160a commit f6bb772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmarks/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ def run_process(cmd: "List[str]", time_compilation: "bool"=False, env = None):
run_units.append(possible_units.index(units))

if create_shared_lib:
subprocess.Popen([shutil.which('pyccel-clean'), '-s'])
with subprocess.Popen([shutil.which('pyccel-clean'), '-s']) as p:
out, err = p.communicate()
returncode = p.returncode

if time_compilation:
row = cell_splitter[output_format].join('{0: <25}'.format(s) for s in comp_times)
Expand Down

0 comments on commit f6bb772

Please sign in to comment.