Skip to content

Commit

Permalink
Merge branch 'develop' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Aug 7, 2022
2 parents 7d6dccb + dea3278 commit 61728a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bench/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, path):

@property
def python(self) -> str:
return get_env_cmd("python*", bench_path=self.name)
return get_env_cmd("python", bench_path=self.name)

@property
def shallow_clone(self) -> bool:
Expand Down
6 changes: 3 additions & 3 deletions bench/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def change_uid():


def app_cmd(bench_path="."):
f = get_env_cmd("python*", bench_path=bench_path)
f = get_env_cmd("python", bench_path=bench_path)
os.chdir(os.path.join(bench_path, "sites"))
os.execv(f, [f] + ["-m", "frappe.utils.bench_helper"] + sys.argv[1:])


def frappe_cmd(bench_path="."):
f = get_env_cmd("python*", bench_path=bench_path)
f = get_env_cmd("python", bench_path=bench_path)
os.chdir(os.path.join(bench_path, "sites"))
os.execv(f, [f] + ["-m", "frappe.utils.bench_helper", "frappe"] + sys.argv[1:])

Expand All @@ -207,7 +207,7 @@ def get_frappe_commands():


def get_frappe_help(bench_path="."):
python = get_env_cmd("python*", bench_path=bench_path)
python = get_env_cmd("python", bench_path=bench_path)
sites_path = os.path.join(bench_path, "sites")
try:
out = get_cmd_output(
Expand Down
2 changes: 1 addition & 1 deletion bench/commands/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,5 @@ def pip(ctx, args):

from bench.utils.bench import get_env_cmd

env_py = get_env_cmd("python*")
env_py = get_env_cmd("python")
os.execv(env_py, (env_py, "-m", "pip") + args)
4 changes: 2 additions & 2 deletions bench/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def run_frappe_cmd(*args, **kwargs):
from bench.utils.bench import get_env_cmd

bench_path = kwargs.get("bench_path", ".")
f = get_env_cmd("python*", bench_path=bench_path)
f = get_env_cmd("python", bench_path=bench_path)
sites_dir = os.path.join(bench_path, "sites")

is_async = not from_command_line
Expand Down Expand Up @@ -386,7 +386,7 @@ def get_env_frappe_commands(bench_path=".") -> List:
"""
from bench.utils.bench import get_env_cmd

python = get_env_cmd("python*", bench_path=bench_path)
python = get_env_cmd("python", bench_path=bench_path)
sites_path = os.path.join(bench_path, "sites")

try:
Expand Down

0 comments on commit 61728a1

Please sign in to comment.