Skip to content

Commit

Permalink
fix: correct python path for migrate_env
Browse files Browse the repository at this point in the history
Currently it's executing env directory which would never work.
  • Loading branch information
ankush committed Nov 29, 2022
1 parent 7f1c5ad commit 61e0f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 61e0f4a

Please sign in to comment.