2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 00:37:51 +00:00

fix: Use hardcoded python3 env cmd for Bench.python

This commit is contained in:
Gavin D'souza 2022-08-01 14:54:01 +05:30
parent e7c0c264d9
commit c9c6bf4512

View File

@ -6,7 +6,6 @@ import shutil
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 @@ class Bench(Base, Validator):
@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: