summaryrefslogtreecommitdiffstats
path: root/src/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup.py')
-rw-r--r--src/setup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/setup.py b/src/setup.py
index 8f81573..fb90467 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -75,7 +75,10 @@ arguments = {
'cmdclass' : {'install_lib' : my_install_lib}
}
-if sys.argv[1] == "bdist_wininst":
- arguments['data_files'] = [('.', ["script/scons.bat"])]
+try:
+ if sys.argv[1] == "bdist_wininst":
+ arguments['data_files'] = [('.', ["script/scons.bat"])]
+except IndexError:
+ pass
apply(setup, (), arguments)