Skip to content

Commit 68a13b3

Browse files
committed
benchmark harness: add benchmark file to sys.path (for benchmark relative imports)
1 parent 2bfe6d1 commit 68a13b3

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python.benchmarks/python

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python.benchmarks/python/harness.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ def run_benchmark(args):
362362

363363
# set the paths if specified
364364
print(_HRULE)
365+
sys.path.append(os.path.split(bench_file)[0])
365366
if paths:
366367
for pth in paths:
367368
print("### adding module path: %s" % pth)

0 commit comments

Comments
 (0)