Revert "Better tooling"
This reverts commit eed06d620fa4814a596c359b2d8bba4ad524c934.
Accidental dcommit
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299615 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/python_runner.sh b/python_runner.sh
index 2834d14..bf9f624 100755
--- a/python_runner.sh
+++ b/python_runner.sh
@@ -41,15 +41,10 @@
else
BASENAME="${0##*\\}"
fi
-
SCRIPT="${SCRIPT-${BASENAME//-/_}.py}"
-if [[ $PYTHON_DIRECT = 1 ]]; then
- python.exe "$DEPOT_TOOLS\\$SCRIPT" "$@"
+if [[ -e "$DEPOT_TOOLS/python.bat" && $OSTYPE = msys ]]; then
+ cmd.exe //c "$DEPOT_TOOLS\\python.bat" "$DEPOT_TOOLS\\$SCRIPT" "$@"
else
- if [[ -e "$DEPOT_TOOLS/python.bat" && $OSTYPE = msys ]]; then
- cmd.exe //c "$DEPOT_TOOLS\\python.bat" "$DEPOT_TOOLS\\$SCRIPT" "$@"
- else
- exec "$DEPOT_TOOLS/$SCRIPT" "$@"
- fi
+ exec "$DEPOT_TOOLS/$SCRIPT" "$@"
fi