mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +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
gclient
11
gclient
@@ -26,13 +26,4 @@ fi
|
||||
# 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/gclient.py" "$@"
|
||||
elif [[ $GCLIENT_PY3 == 0 ]]; then
|
||||
# Explicitly run on Python 2
|
||||
PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/gclient.py" "$@"
|
||||
else
|
||||
# Run on Python 3, allows default to be flipped.
|
||||
PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/gclient.py" "$@"
|
||||
fi
|
||||
PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/gclient.py" "$@"
|
||||
|
||||
Reference in New Issue
Block a user