Skip to content

Commit

Permalink
fix: Use hardcoded python3 env cmd for Bench.python
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Aug 1, 2022
1 parent e7c0c26 commit c9c6bf4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bench/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import json
import sys
import logging
from glob import glob
from typing import List, MutableSequence, TYPE_CHECKING, Union

# imports - module imports
Expand Down Expand Up @@ -72,12 +71,7 @@ def __init__(self, path):

@property
def python(self) -> str:
existing_python_bins = glob(f"{self.name}/env/bin/python*")

if existing_python_bins:
return existing_python_bins[0]

return get_env_cmd("python", bench_path=self.name)
return get_env_cmd("python3", bench_path=self.name)

@property
def shallow_clone(self) -> bool:
Expand Down

0 comments on commit c9c6bf4

Please sign in to comment.