Skip to content

Commit

Permalink
fix: bench_path during setup_env
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 25, 2020
1 parent 35d1166 commit 8c86ef5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ def get_venv_path():

def setup_env(bench_path='.', python='python3'):
frappe = os.path.join(bench_path, "apps", "frappe")
pip = os.path.join(".", "env", "bin", "pip")
pip = os.path.join(bench_path, "env", "bin", "pip")
virtualenv = get_venv_path()

exec_cmd('{} -q env -p {}'.format(virtualenv, python), cwd=bench_path)
exec_cmd('{} install -q -U -e {}'.format(pip, frappe), cwd=bench_path)

if os.path.exists(frappe):
exec_cmd('{} install -q -U -e {}'.format(pip, frappe), cwd=bench_path)


def setup_socketio(bench_path='.'):
Expand Down

0 comments on commit 8c86ef5

Please sign in to comment.