]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Do not try to produce a launcher if there is no profile
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 14:14:02 +0000 (16:14 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 14:14:02 +0000 (16:14 +0200)
commands/package.py

index d9faded43a84fd005563d9e6702184b7c19ad105..df1e5e6220b925ccb06853f99fa3b02a59caae2c 100644 (file)
@@ -257,12 +257,13 @@ def binary_package(config, logger, options, tmp_working_dir):
         d_products[prod_name] = (install_dir, path_in_archive)
     
     # create the relative launcher and add it to the files to add
-    launcher_name = config.APPLICATION.profile.launcher_name
-    launcher_package = produce_relative_launcher(config,
-                                                 logger,
-                                                 tmp_working_dir,
-                                                 launcher_name,
-                                                 binaries_dir_name)
+    if "profile" in config.APPLICATION:
+        launcher_name = config.APPLICATION.profile.launcher_name
+        launcher_package = produce_relative_launcher(config,
+                                                     logger,
+                                                     tmp_working_dir,
+                                                     launcher_name,
+                                                     binaries_dir_name)
     
     d_products["launcher"] = (launcher_package, launcher_name)