]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
bug fix: do not try to get config from a product not in dependencies when compiling
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 14:11:03 +0000 (16:11 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 14:11:03 +0000 (16:11 +0200)
src/environment.py

index 5ad12b0675ec764bd4ba2b622cabbec468e835df..35e3c153d447f85255f25e16a2293c25c2499d6f 100644 (file)
@@ -356,10 +356,6 @@ class SalomeEnviron:
                                    "resources",
                                    profile_product.lower() ) )
         
-        # The list of products to launch
-        lProductsName = self.get_names(self.cfg.APPLICATION.products.keys())
-        
-        self.set( "SALOME_MODULES",    ','.join(lProductsName))
 
     def set_salome_minimal_product_env(self, product_info, logger):
         """Sets the minimal environment for a SALOME product.
@@ -669,6 +665,11 @@ class FileEnvWriter:
         else:
             # set env from the APPLICATION
             env.set_application_env(self.logger)
+            
+            # The list of products to launch
+            lProductsName = env.get_names(self.cfg.APPLICATION.products.keys())
+            env.set( "SALOME_MODULES",    ','.join(lProductsName))
+            
             # set the products
             env.set_products(self.logger,
                             src_root=self.src_root)
@@ -713,6 +714,10 @@ class FileEnvWriter:
             # set env from PRODUCT
             env.set_application_env(self.logger)
 
+            # The list of products to launch
+            lProductsName = env.get_names(self.cfg.APPLICATION.products.keys())
+            env.set( "SALOME_MODULES",    ','.join(lProductsName))
+
             # set the products
             env.set_products(self.logger,
                             src_root=self.src_root)