# HG changeset patch # User Sebastien Jodogne # Date 1357635741 -3600 # Node ID e7276309b2692a5fa6388d9ba6f0c839c48fe9de # Parent 71d30b9ce8014a27b182d9436bb6d563f6be8258 fix diff -r 71d30b9ce801 -r e7276309b269 Resources/EmbedResources.py --- 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] [ ]*' % 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] [ ]*' % sys.argv[0]) + exit(-1) + TARGET_BASE_FILENAME = ARGS[1] SOURCES = ARGS[2:]