From 58d15cb79923e01d197440791e9eadb176b1cede Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Sun, 11 Feb 2024 23:16:37 -0700 Subject: [PATCH] cli_launcher: Use Scripts dir for windows compatibility --- cli_launcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli_launcher.py b/cli_launcher.py index 697b5ce..ec9cf72 100755 --- a/cli_launcher.py +++ b/cli_launcher.py @@ -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: