From 822ac7b100e6d0ed876ec8c6dea09f3ab0809655 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 27 Jan 2015 09:07:41 +0100 Subject: win32/build.py: fix IndexError when no command-line arguments are given --- win32/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/build.py b/win32/build.py index 28b92c9c1..8e97564bc 100755 --- a/win32/build.py +++ b/win32/build.py @@ -10,7 +10,7 @@ configure_args = sys.argv[1:] host_arch = 'i686-w64-mingw32' -if configure_args[0] == '--64': +if len(configure_args) > 0 and configure_args[0] == '--64': configure_args = configure_args[1:] host_arch = 'x86_64-w64-mingw32' -- cgit v1.2.3