From: S. Pomarede Date: Tue, 4 Oct 2016 12:59:26 +0000 (+0200) Subject: bug fix in generate command X-Git-Tag: 5.0.0a1~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1969325b4d84daa4386b7b9941798dc69162e78a;p=tools%2Fsat.git bug fix in generate command --- diff --git a/commands/generate.py b/commands/generate.py index d0e3cf4..b7d53f8 100644 --- a/commands/generate.py +++ b/commands/generate.py @@ -79,7 +79,7 @@ def generate_component(config, compo, product_info, context, header, logger): builder.header = header # generate the component - # create GENERETE dir if necessary + # create GENERATE dir if necessary if not os.path.exists(generate_dir): os.mkdir(generate_dir) diff --git a/src/environment.py b/src/environment.py index a8152b0..2d2a835 100644 --- a/src/environment.py +++ b/src/environment.py @@ -539,6 +539,9 @@ class SalomeEnviron: if "component_name" in pi: # hack the source and install directories in order to point # on the generated product source install directories + install_dir_save = pi.install_dir + source_dir_save = pi.source_dir + name_save = pi.name pi.install_dir = os.path.join(self.cfg.APPLICATION.workdir, "INSTALL", pi.component_name) @@ -549,6 +552,10 @@ class SalomeEnviron: self.set_salome_minimal_product_env(pi, logger) self.set_salome_generic_product_env(pi) + # Put original values + pi.install_dir = install_dir_save + pi.source_dir = source_dir_save + pi.name = name_save # Put the environment define in the configuration of the product if "environ" in pi: