Index: gclient |
diff --git a/gclient b/gclient |
index 7c57dfdeac8fb90028679e43eb974760e98ebfa3..abd95ddfecf1ba49405176c8c71bc91937db84ff 100755 |
--- a/gclient |
+++ b/gclient |
@@ -9,4 +9,10 @@ if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then |
"$base_dir"/update_depot_tools |
fi |
-PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@" |
+OUTPUT="$(uname | grep 'MINGW')" |
+MINGW=$? |
+if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then |
+ PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python_bin/python.exe" "$base_dir"/gclient.py "$@" |
+else |
+ PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/gclient.py" "$@" |
+fi |