diff --git a/python/raft-ann-bench/src/raft-ann-bench/split_groundtruth/__main__.py b/python/raft-ann-bench/src/raft-ann-bench/split_groundtruth/__main__.py index e8625ce7d7..4592fa9ec7 100644 --- a/python/raft-ann-bench/src/raft-ann-bench/split_groundtruth/__main__.py +++ b/python/raft-ann-bench/src/raft-ann-bench/split_groundtruth/__main__.py @@ -19,7 +19,9 @@ def split_groundtruth(groundtruth_filepath): - ann_bench_scripts_path = "split_groundtruth.pl" + ann_bench_scripts_path = \ + os.path.join(os.path.dirname(os.path.realpath(__file__)), + "split_groundtruth.pl") pwd = os.getcwd() os.chdir("/".join(groundtruth_filepath.split("/")[:-1])) groundtruth_filename = groundtruth_filepath.split("/")[-1]