Skip to content

Commit 07e6c69

Browse files
committed
Update run_benchmarks.py
1 parent 5381048 commit 07e6c69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/run_benchmarks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def test_file(filepath, cpython=False, prefix='.'):
1212
if sys.platform == 'win32':
1313
code = os.system(f"{prefix}\\main.exe " + filepath)
1414
else:
15-
code = os.system(f"cd {prefix} && ./main " + filepath)
15+
os.environ['LD_LIBRARY_PATH'] = f"{os.path.abspath(prefix)}:{os.environ.get('LD_LIBRARY_PATH', '')}"
16+
code = os.system(f"{prefix}/main " + filepath)
1617
elapsed_time = time.perf_counter() - start_time
1718
return (code == 0), elapsed_time
1819

0 commit comments

Comments
 (0)