Fix arguments checking consistency.
authorThomas Mansencal <thomas.mansencal@gmail.com>
Thu, 15 Jan 2015 09:13:49 +0000 (10:13 +0100)
committerThomas Mansencal <thomas.mansencal@gmail.com>
Thu, 15 Jan 2015 09:13:49 +0000 (10:13 +0100)
aces_1.0.0/python/create_aces_config.py

index 2ff8b85..3c1350b 100755 (executable)
@@ -1491,10 +1491,13 @@ def main():
 
     print( "command line : \n%s\n" % " ".join(sys.argv) )
 
-    if configDir == None:
+    if not acesCTLDir:
         print( "process: No ACES CTL directory specified" )
         return
+
+    if not configDir:
+        print( "process: No configuration directory specified" )
+        return
     #
     # Generate the configuration
     #