- # If there is an "environ_script" section, load the scripts
- if 'environ_script' in self.cfg.APPLICATION:
- for pscript in self.cfg.APPLICATION.environ_script:
- self.add_comment("script %s" % pscript)
- sname = pscript.replace(" ", "_")
- self.run_env_script("APPLICATION_%s" % sname,
- self.cfg.APPLICATION.environ_script[pscript],
- logger)
- self.add_line(1)
-
- # If there is profile (SALOME), then define additional variables
- if ('profile' in self.cfg.APPLICATION and
- "product" in self.cfg.APPLICATION.profile):
- profile_product = self.cfg.APPLICATION.profile.product
- product_info_profile = src.product.get_product_config(self.cfg,
- profile_product)
- profile_share_salome = os.path.join(product_info_profile.install_dir,
- "share",
- "salome" )
- self.set( "SUITRoot", profile_share_salome )
- self.set( "SalomeAppConfig",
- os.path.join(profile_share_salome,
- "resources",
- profile_product.lower() ) )
-