Skip to content

Commit 087289d

Browse files
committed
Revert unrelated change to get_dataset/__main__.py
1 parent e499469 commit 087289d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

python/cuvs_bench/cuvs_bench/get_dataset/__main__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import os
66
import subprocess
7-
import sys
87

98
import click
109
import h5py
@@ -35,14 +34,13 @@ def convert_hdf5_to_fbin(path, normalize):
3534
scripts_path = os.path.dirname(os.path.realpath(__file__))
3635
ann_bench_scripts_path = os.path.join(scripts_path, "hdf5_to_fbin.py")
3736
print(f"calling script {ann_bench_scripts_path}")
38-
python = sys.executable
3937
if normalize and "angular" in path:
4038
subprocess.run(
41-
[python, ann_bench_scripts_path, "-n", "%s" % path], check=True
39+
["python", ann_bench_scripts_path, "-n", "%s" % path], check=True
4240
)
4341
else:
4442
subprocess.run(
45-
[python, ann_bench_scripts_path, "%s" % path], check=True
43+
["python", ann_bench_scripts_path, "%s" % path], check=True
4644
)
4745

4846

0 commit comments

Comments
 (0)