Commit df31e61e authored by szager@chromium.org's avatar szager@chromium.org

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
parent eac8dafe
......@@ -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 $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment