Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Faraone <luke@faraone.cc>2010-08-18 14:58:10 (GMT)
committer Luke Faraone <luke@faraone.cc>2010-08-18 14:58:10 (GMT)
commitcda9a750f17c57949cf60cd1c7049927f3754537 (patch)
tree046d46ed9ee7b4f2d67f0569c4d3f7b5b21e4fc9
parent2d2a821b8063225c15d244658b6599b7e8878227 (diff)
Don't test for arguments if none are given.HEADmaster
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-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 0233f26..e5026ee 100755
--- a/setup.py
+++ b/setup.py
@@ -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)