Use bundled python to run gn

Change-Id: If01a7dae1aca72c93c87c1db27d2d37432094852
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6490515
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
This commit is contained in:
Fumitoshi Ukai
2025-04-28 00:22:14 -07:00
committed by LUCI CQ
parent 1fcc527019
commit fa8fc854e1
2 changed files with 4 additions and 2 deletions

2
gn
View File

@@ -11,4 +11,4 @@ if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
exit
fi
PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gn.py" "$@"
PYTHONDONTWRITEBYTECODE=1 "$base_dir/python-bin/python3" "$base_dir/gn.py" "$@"

4
gn.bat
View File

@@ -8,5 +8,7 @@ setlocal
:: standalone, but allow other PATH manipulations to take priority.
set PATH=%PATH%;%~dp0
set scriptdir=%~dp0
:: Defer control.
python3 "%~dp0\gn.py" %*
@call %scriptdir%python-bin\python3 "%~dp0\gn.py" %*