]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
improve the load of environment for the APPLICATION.environ section
authorCEA Support SALOME <support-salome@cea.fr>
Tue, 7 Mar 2017 14:42:14 +0000 (15:42 +0100)
committerCEA Support SALOME <support-salome@cea.fr>
Tue, 7 Mar 2017 14:42:14 +0000 (15:42 +0100)
src/environment.py

index 29c8edb1e3f1987cd4979baf54a81246a39e42d1..ad7ff4064f5ea461a4e23100a190f51011e54266 100644 (file)
@@ -339,7 +339,7 @@ class SalomeEnviron:
             self.load_cfg_environment(self.cfg.APPLICATION.environ)
             if self.forBuild and "build" in self.cfg.APPLICATION.environ:
                 self.load_cfg_environment(self.cfg.APPLICATION.environ.build)
-            if not self.forBuild and "launch" in pi.environ:
+            if not self.forBuild and "launch" in self.cfg.APPLICATION.environ:
                 self.load_cfg_environment(self.cfg.APPLICATION.environ.launch)
             self.add_line(1)