Add a python2 shim under python2-bin/
Similarly to how python3 is available at python-bin/, this will allow developers to opt-in to a depot_tools provided python2. Bug: 1109180 Change-Id: I872eaa1289bb477da73373e99f5e6188a87d39dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2512906 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Reviewed-by: Dirk Pranke <dpranke@google.com> Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>changes/06/2512906/6
parent
1607bf453a
commit
26cd974abf
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DEPOT_TOOLS=$(dirname "$0")/..
|
||||
|
||||
PYTHON_BIN_DIR="$DEPOT_TOOLS/$(cat $DEPOT_TOOLS/python_bin_reldir.txt | xargs echo)"
|
||||
PATH="$PYTHON_BIN_DIR":"$PATH"
|
||||
"$PYTHON_BIN_DIR/python" "$@"
|
Loading…
Reference in New Issue