Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: gclient

Issue 140843004: Fetch Windows tools on Cygwin and use that Python for some scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: revert extra change Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fetch ('k') | update_depot_tools » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient
diff --git a/gclient b/gclient
index 7c57dfdeac8fb90028679e43eb974760e98ebfa3..5f8920bfc17a4afd7f3632765635fce379711b7f 100755
--- a/gclient
+++ b/gclient
@@ -9,4 +9,12 @@ if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then
"$base_dir"/update_depot_tools
fi
-PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"
+PYTHON=python
+
+OUTPUT="$(uname | grep 'CYGWIN')"
+CYGWIN=$?
+if [ $CYGWIN = 0 ]; then
+ PYTHON="$base_dir/python.bat"
+fi
+
+PYTHONDONTWRITEBYTECODE=1 exec "$PYTHON" "$base_dir/gclient.py" "$@"
« no previous file with comments | « fetch ('k') | update_depot_tools » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698