From cda9a750f17c57949cf60cd1c7049927f3754537 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 18 Aug 2010 14:58:10 +0000 Subject: Don't test for arguments if none are given. 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. --- 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) -- cgit v0.9.1