diff options
author | Luke Faraone <luke@faraone.cc> | 2010-08-18 14:58:10 (GMT) |
---|---|---|
committer | Luke Faraone <luke@faraone.cc> | 2010-08-18 14:58:10 (GMT) |
commit | cda9a750f17c57949cf60cd1c7049927f3754537 (patch) | |
tree | 046d46ed9ee7b4f2d67f0569c4d3f7b5b21e4fc9 | |
parent | 2d2a821b8063225c15d244658b6599b7e8878227 (diff) |
This solves a traceback generated if only './setup.py' is called.
Granted, running just that won't do anything anyway, but it's good
to handle the case in the rare event that we add a default action
later.
-rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ import os import sys -if '--no-sugar' == sys.argv[1]: +if len(sys.argv) > 1 and '--no-sugar' == sys.argv[1]: # Remove the argument from the stack so we don't cause problems # for distutils sys.argv.pop(1) |