]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
fix env for generated components
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 4 Oct 2016 10:22:30 +0000 (12:22 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 4 Oct 2016 10:22:30 +0000 (12:22 +0200)
src/environment.py

index ab40ba8fd0d8bd8a46d6fb95a1f62402d7136c25..a8152b0a7a658ffa9ba871597f643d3bc245146f 100644 (file)
@@ -537,11 +537,14 @@ class SalomeEnviron:
             
             if src.product.product_is_generated(pi):
                 if "component_name" in pi:
-                    # hack the install directory in order to point on the 
-                    # generated product install directory
+                    # hack the source and install directories in order to point  
+                    # on the generated product source install directories
                     pi.install_dir = os.path.join(self.cfg.APPLICATION.workdir,
                                                   "INSTALL",
                                                   pi.component_name)
+                    pi.source_dir = os.path.join(self.cfg.APPLICATION.workdir,
+                                                  "GENERATED",
+                                                  pi.component_name)
                     pi.name = pi.component_name
                     self.set_salome_minimal_product_env(pi, logger)
                     self.set_salome_generic_product_env(pi)