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
experimental/szager/collated-output
bcwhite@chromium.org 12 years ago
parent 17f70a5ae4
commit 6683ab4c49

@ -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

Loading…
Cancel
Save