mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Revert "depot_tools: Run Python scripts using vpython (Part 1)"
This reverts commit d6186f9936.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> depot_tools: Run Python scripts using vpython (Part 1)
>
> Tbr: iannucci@chromium.org
> Bug: 984182
> Change-Id: If36722e190d305f89d63dce91d0a600ddc34ebe3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1748589
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
TBR=iannucci@chromium.org,ehmaldonado@chromium.org
Change-Id: I7686985852608d0703bcbbab137df1ce82b29723
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1749853
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
7149d23621
commit
98eda3f3e4
@@ -47,9 +47,9 @@ SCRIPT="${SCRIPT-${BASENAME//-/_}.py}"
|
||||
if [[ $PYTHON_DIRECT = 1 ]]; then
|
||||
python.exe "$DEPOT_TOOLS\\$SCRIPT" "$@"
|
||||
else
|
||||
if [ $OSTYPE = msys ]; then
|
||||
PYTHONDONTWRITEBYTECODE=1 $DEPOT_TOOLS\\vpython "$DEPOT_TOOLS\\$SCRIPT" "$@"
|
||||
if [[ -e "$DEPOT_TOOLS/python.bat" && $OSTYPE = msys ]]; then
|
||||
cmd.exe //c "$DEPOT_TOOLS\\python.bat" "$DEPOT_TOOLS\\$SCRIPT" "$@"
|
||||
else
|
||||
PYTHONDONTWRITEBYTECODE=1 exec $DEPOT_TOOLS/vpython "$DEPOT_TOOLS/$SCRIPT" "$@"
|
||||
exec "$DEPOT_TOOLS/$SCRIPT" "$@"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user