Handle setup.py invocation without arguments.
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2004 08:04:16 +0000 (08:04 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2004 08:04:16 +0000 (08:04 +0000)
setup.py

index d843385..12d7026 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ import os
 import shutil
 import sys
 
-if sys.argv[1] == "windows":
+if len(sys.argv) > 0 and sys.argv[1] == "windows":
     windows_mode = True
     del sys.argv[1]
 else: