Commit 6683ab4c authored by bcwhite@chromium.org's avatar bcwhite@chromium.org

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
parent 17f70a5a
......@@ -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
......
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