mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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:
2
gn
2
gn
@@ -11,4 +11,4 @@ if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gn.py" "$@"
|
PYTHONDONTWRITEBYTECODE=1 "$base_dir/python-bin/python3" "$base_dir/gn.py" "$@"
|
||||||
|
|||||||
4
gn.bat
4
gn.bat
@@ -8,5 +8,7 @@ setlocal
|
|||||||
:: standalone, but allow other PATH manipulations to take priority.
|
:: standalone, but allow other PATH manipulations to take priority.
|
||||||
set PATH=%PATH%;%~dp0
|
set PATH=%PATH%;%~dp0
|
||||||
|
|
||||||
|
set scriptdir=%~dp0
|
||||||
|
|
||||||
:: Defer control.
|
:: Defer control.
|
||||||
python3 "%~dp0\gn.py" %*
|
@call %scriptdir%python-bin\python3 "%~dp0\gn.py" %*
|
||||||
|
|||||||
Reference in New Issue
Block a user