fix: ga scripts prefer project .venv over system python
Prefer project virtualenv Python in ga launchers to avoid PEP 668/system Python issues, falling back to PATH python when no venv exists.
This commit is contained in:
1 parent
2f2905dfee
commit
a9b1dcce98
3 files changed
+9
-3
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
exec python -m ga_cli "$@"
|
PY=.venv/bin/python
|
||||||
|
[ -x "$PY" ] || PY=python
|
||||||
|
exec "$PY" -m ga_cli "$@"
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd /d "%~dp0"
|
cd /d "%~dp0"
|
||||||
python -m ga_cli %*
|
set "PY=.venv\Scripts\python.exe"
|
||||||
|
if not exist "%PY%" set "PY=python"
|
||||||
|
"%PY%" -m ga_cli %*
|
||||||
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd /d "%~dp0.."
|
cd /d "%~dp0.."
|
||||||
python -m ga_cli %*
|
set "PY=.venv\Scripts\python.exe"
|
||||||
|
if not exist "%PY%" set "PY=python"
|
||||||
|
"%PY%" -m ga_cli %*
|
||||||
Reference in new issue
Block a user