]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Improve the application command
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 14:10:39 +0000 (16:10 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 14:10:39 +0000 (16:10 +0200)
commands/application.py

index 2cc326e37f602f4a3a812a6fa696f8ab676bbfb4..48f9f37a468667d4334790774cefcfad7097920f 100644 (file)
@@ -258,20 +258,17 @@ def generate_launch_file(config, appli_dir, catalog, logger, l_SALOME_modules):
     try:
         import environ
         # generate only shells the user wants (by default bash, csh, batch)
-        # the environ command will only generate file compatible with the current system.
-        shells = src.get_cfg_param(config.TOOLS.environ,
-                                   "shells",
-                                   [ "bash", "batch"])
+        # the environ command will only generate file compatible 
+        # with the current system.
         environ.write_all_source_files(config,
                                        logger,
-                                       silent=True,
-                                       shells=shells)
+                                       silent=True)
         status = src.OK_STATUS
     finally:
         logger.write(src.printcolors.printc(status) + "\n", 2, False)
 
     # build the application
-    env_file = os.path.join(config.PRODUCT.out_dir, "env_launch.sh")
+    env_file = os.path.join(config.APPLICATION.workdir, "env_launch.sh")
     write_step(logger, _("Building application"), level=2)
     cf = create_config_file(config, l_SALOME_modules, env_file, logger)