From c9c6bf4512ba0c1c58df92a2384347bd77cc558d Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Mon, 1 Aug 2022 14:54:01 +0530 Subject: [PATCH] fix: Use hardcoded python3 env cmd for Bench.python --- bench/bench.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bench/bench.py b/bench/bench.py index 11ed67d46..6b5dd3d1c 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -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 @@ -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: