Invoke python correctly from windows.

BUG=158663


Review URL: https://chromiumcodereview.appspot.com/12941002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189084 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
szager@chromium.org 13 years ago
parent eac8dafe53
commit df31e61e1a

@ -12,5 +12,12 @@ if ! test -f "$PWD/src/.gitmodules"; then
fi
gclient_spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]"
gclient runhooks --spec="$gclient_spec"
kernel_name=$(uname -s)
if [ "${kernel_name:0:5}" = "MINGW" ]; then
dir="${0%\\*}"
cmd "/C ${dir}\\python.bat ${dir}\\gclient.py runhooks --spec=$gclient_spec"
else
dir="$(dirname $0)"
PYTHONDONTWRITEBYTECODE=1 exec python "$dir/gclient.py" runhooks --spec="$gclient_spec"
fi
exit $?

Loading…
Cancel
Save