python2 466 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. DEPOT_TOOLS=$(dirname "$0")/..
  3. if [ "$OSTYPE" = "msys" ]
  4. then
  5. # msys is `git bash` on windows, so python_bin_reldir contains backslashes;
  6. # this converts them to the forward slashes a unix environment expects.
  7. PYTHON_BIN_DIR="$DEPOT_TOOLS/$(sed -e 's-\\-/-g' $DEPOT_TOOLS/python_bin_reldir.txt)"
  8. else
  9. PYTHON_BIN_DIR="$DEPOT_TOOLS/$(<"$DEPOT_TOOLS/python_bin_reldir.txt")"
  10. fi
  11. PATH="$PYTHON_BIN_DIR":"$PATH"
  12. "$PYTHON_BIN_DIR/python" "$@"