changeset 326:e7276309b269

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Jan 2013 10:02:21 +0100
parents 71d30b9ce801
children 4564e908bba9
files Resources/EmbedResources.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/EmbedResources.py	Tue Jan 08 09:54:22 2013 +0100
+++ b/Resources/EmbedResources.py	Tue Jan 08 10:02:21 2013 +0100
@@ -34,11 +34,6 @@
 import pprint
 import re
 
-if len(sys.argv) < 2 or len(sys.argv) % 2 != 0:
-    print ('Usage:')
-    print ('python %s [--no-upcase-check] <TargetBaseFilename> [ <Name> <Source> ]*' % sys.argv[0])
-    exit(-1)
-
 UPCASE_CHECK = True
 ARGS = []
 for i in range(len(sys.argv)):
@@ -47,6 +42,11 @@
     elif sys.argv[i].lower() == '--no-upcase-check':
         UPCASE_CHECK = False
 
+if len(ARGS) < 2 or len(ARGS) % 2 != 0:
+    print ('Usage:')
+    print ('python %s [--no-upcase-check] <TargetBaseFilename> [ <Name> <Source> ]*' % sys.argv[0])
+    exit(-1)
+
 TARGET_BASE_FILENAME = ARGS[1]
 SOURCES = ARGS[2:]