From 61e0f4acbf4b7e95da2d1d0b26516cd41bfc6eed Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 29 Nov 2022 12:23:49 +0530 Subject: [PATCH] fix: correct python path for migrate_env Currently it's executing env directory which would never work. --- bench/utils/bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils/bench.py b/bench/utils/bench.py index eb2b00eb..742dc5ba 100644 --- a/bench/utils/bench.py +++ b/bench/utils/bench.py @@ -218,7 +218,7 @@ def migrate_env(python, backup=False): venv_creation = exec_cmd(f"{virtualenv} --python {python} {pvenv}") apps = " ".join([f"-e {os.path.join('apps', app)}" for app in bench.apps]) - packages_setup = exec_cmd(f"{pvenv} -m pip install --upgrade {apps}") + packages_setup = exec_cmd(f"{pvenv}/bin/python -m pip install --upgrade {apps}") logger.log(f"Migration Successful to {python}") except Exception: