From 07385dffee7074f88255f8affa6ed7a41de2f432 Mon Sep 17 00:00:00 2001 From: divyegala Date: Wed, 18 Oct 2023 14:35:08 -0700 Subject: [PATCH] fix path --- .../src/raft-ann-bench/split_groundtruth/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]