mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
This will make it possible for developers to execute depot_tools scripts using Python 3 in a known environment. Bug: 1002153 Change-Id: I5ff492a49d227c1b5876f49adba020f51a575bdd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1762664 Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
8 lines
237 B
Bash
8 lines
237 B
Bash
#!/usr/bin/env bash
|
|
|
|
base_dir=$(dirname "$0")
|
|
|
|
PYTHON3_BIN_RELDIR="$(cat $base_dir/python3_bin_reldir.txt | xargs echo)"
|
|
PATH="${PYTHON3_BIN_RELDIR}":"${PYTHON3_BIN_RELDIR}/Scripts":"$PATH"
|
|
"$base_dir/${PYTHON3_BIN_RELDIR}/python3" "$@"
|