handle bad python install


BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@181695 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient.py b/gclient.py
index 2c83c81..c19e963 100644
--- a/gclient.py
+++ b/gclient.py
@@ -1719,6 +1719,10 @@
         '\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