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

Unified Diff: gclient.py

Issue 12035089: handle bad python install (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: untabify Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index 2c83c8138ea8acab45b2219bce1f45cbb2241cd7..c19e96309793f2c7c40edbffd2050f6358ec0d84 100644
--- a/gclient.py
+++ b/gclient.py
@@ -1719,6 +1719,10 @@ def Main(argv):
'\nYour python version %s is unsupported, please upgrade.\n' %
sys.version.split(' ', 1)[0])
return 2
+ if not sys.executable:
+ print >> sys.stderr, (
+ '\nPython cannot find the location of it\'s own executable.\n')
+ return 2
colorama.init()
try:
# Make stdout auto-flush so buildbot doesn't kill us during lengthy
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698