Skip to content

Commit

Permalink
fix path to activate_this on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mukilan committed Dec 15, 2024
1 parent 82f0dda commit 94aabd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/mach_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def _activate_virtualenv(topdir):
if not os.path.exists(virtualenv_path):
print(" * Setting up virtual environment...")
_process_exec(["uv", "venv"])
runpy.run_path(os.path.join(virtualenv_path, 'bin', 'activate_this.py'))

script_dir = "Scripts" if _is_windows() else "bin"
runpy.run_path(os.path.join(virtualenv_path, script_dir, 'activate_this.py'))

install_virtual_env_requirements(topdir, virtualenv_path)

Expand Down

0 comments on commit 94aabd2

Please sign in to comment.