Skip to content

Commit

Permalink
cli_launcher: Use Scripts dir for windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrosenthal committed Feb 12, 2024
1 parent c1d8ce3 commit 58d15cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_venv_dir() -> Path:

def venv_cmd(executable: str) -> Path:
"""Get the path to a command in the virtual environment."""
return get_venv_dir() / "bin" / executable
scripts_file = get_venv_dir() / "Scripts" / executable
if scripts_file.exists():
return scripts_file
return get_venv_dir() / "bin" / "executable"


def build_venv() -> None:
Expand Down

0 comments on commit 58d15cb

Please sign in to comment.