Skip to content

Commit

Permalink
fix: Pass abs path from get_env_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Aug 2, 2022
1 parent 6ae1997 commit 10473b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 10473b6

Please sign in to comment.