From: Serge Rehbinder Date: Tue, 20 Sep 2016 14:14:02 +0000 (+0200) Subject: Do not try to produce a launcher if there is no profile X-Git-Tag: 5.0.0a1~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f14c6c342ad8a8da876564892945e53cccc749d0;p=tools%2Fsat.git Do not try to produce a launcher if there is no profile --- diff --git a/commands/package.py b/commands/package.py index d9faded..df1e5e6 100644 --- a/commands/package.py +++ b/commands/package.py @@ -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)