[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:
Josip Sokcevic
2023-05-11 17:55:43 +00:00
committed by LUCI CQ
parent a3223da8ed
commit 06001cda91
7 changed files with 7 additions and 70 deletions

View File

@@ -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" %*