mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: Use hardcoded python3 env cmd for Bench.python
This commit is contained in:
parent
e7c0c264d9
commit
c9c6bf4512
@ -6,7 +6,6 @@ import shutil
|
|||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
from glob import glob
|
|
||||||
from typing import List, MutableSequence, TYPE_CHECKING, Union
|
from typing import List, MutableSequence, TYPE_CHECKING, Union
|
||||||
|
|
||||||
# imports - module imports
|
# imports - module imports
|
||||||
@ -72,12 +71,7 @@ class Bench(Base, Validator):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def python(self) -> str:
|
def python(self) -> str:
|
||||||
existing_python_bins = glob(f"{self.name}/env/bin/python*")
|
return get_env_cmd("python3", bench_path=self.name)
|
||||||
|
|
||||||
if existing_python_bins:
|
|
||||||
return existing_python_bins[0]
|
|
||||||
|
|
||||||
return get_env_cmd("python", bench_path=self.name)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def shallow_clone(self) -> bool:
|
def shallow_clone(self) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user