Salome HOME
petit correctif bug
authorcrouzet <nicolas.crouzet@cea.fr>
Thu, 31 Jan 2019 14:54:21 +0000 (15:54 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Thu, 31 Jan 2019 14:54:21 +0000 (15:54 +0100)
src/product.py

index f8fcb9334ac3a54d96c42864b71673936f392cbf..11ab0019eb9db11e9b5b5ba1240b121a96462e14 100644 (file)
@@ -63,7 +63,6 @@ def get_product_config(config, product_name, with_install_dir=True):
     # if no version, then take the default one defined in the application
     if isinstance(version, bool) or isinstance(version, str): 
         # in this case tag is mandatory, not debug, verbose, dev
-        version = config.APPLICATION.tag      
         if 'debug' in config.APPLICATION:
             debug = config.APPLICATION.debug
         if 'verbose' in config.APPLICATION:
@@ -73,6 +72,10 @@ def get_product_config(config, product_name, with_install_dir=True):
         if 'hpc' in config.APPLICATION:
             hpc = config.APPLICATION.hpc
 
+    # special case for which only the product name is mentionned 
+    if isinstance(version, bool):
+        version = config.APPLICATION.tag
+
     if isinstance(version, src.pyconf.Mapping):
         dic_version = version
         # Get the version/tag