[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

@@ -9,13 +9,4 @@ base_dir=$(dirname "$0")
# standalone, but allow other PATH manipulations to take priority.
PATH=$PATH:$base_dir
if [[ $GCLIENT_PY3 = 1 ]]; then
# Explicitly run on Python 3
PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/roll_dep.py" "$@"
elif [[ $GCLIENT_PY3 = 0 ]]; then
# Explicitly run on Python 2
PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/roll_dep.py" "$@"
else
# Run on Python 2 for now, allows default to be flipped.
PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/roll_dep.py" "$@"
fi
PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/roll_dep.py" "$@"