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:
slowlyo authored and GitHub committed 2026-05-26 12:03:14 +08:00
1 parent 2f2905dfee
commit a9b1dcce98
3 files changed
+9 -3

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
@echo off
cd /d "%~dp0.."
python -m ga_cli %*
set "PY=.venv\Scripts\python.exe"
if not exist "%PY%" set "PY=python"
"%PY%" -m ga_cli %*