mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
[py2] Drop envvar to run scripts with py2
R=aravindvasudev@google.com Change-Id: I4c2c8265296f8fa1c2ce9a1e4a0b31d1f1dd39f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4522398 Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
This commit is contained in:
11
fetch.bat
11
fetch.bat
@@ -16,13 +16,4 @@ IF %ERRORLEVEL% NEQ 0 (
|
||||
set PATH=%PATH%;%~dp0
|
||||
|
||||
:: Defer control.
|
||||
IF "%GCLIENT_PY3%" == "1" (
|
||||
:: Explicitly run on Python 3
|
||||
call vpython3 "%~dp0\fetch.py" %*
|
||||
) ELSE IF "%GCLIENT_PY3%" == "0" (
|
||||
:: Explicitly run on Python 2
|
||||
call vpython "%~dp0\fetch.py" %*
|
||||
) ELSE (
|
||||
:: Run on Python 3, allows default to be flipped.
|
||||
call vpython3 "%~dp0\fetch.py" %*
|
||||
)
|
||||
call vpython3 "%~dp0\fetch.py" %*
|
||||
|
||||
Reference in New Issue
Block a user