From 10473b60076dde4080ce28222031a332ee7d313a Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 2 Aug 2022 12:46:03 +0530 Subject: [PATCH] fix: Pass abs path from get_env_cmd --- bench/utils/bench.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/utils/bench.py b/bench/utils/bench.py index 98cfec2ee..cf590e6f1 100644 --- a/bench/utils/bench.py +++ b/bench/utils/bench.py @@ -30,10 +30,10 @@ def get_env_cmd(cmd: str, bench_path: str = ".") -> str: ) if existing_python_bins: - return existing_python_bins[0] + return os.path.abspath(existing_python_bins[0]) cmd = cmd.strip("*") - return os.path.join(bench_path, "env", "bin", cmd) + return os.path.abspath(os.path.join(bench_path, "env", "bin", cmd)) def get_venv_path(verbose=False, python="python3"):