From 5199c48604d8d6d14fdb82958201a0c43e5510fd Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 4 Oct 2016 12:22:30 +0200 Subject: [PATCH] fix env for generated components --- src/environment.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/environment.py b/src/environment.py index ab40ba8..a8152b0 100644 --- a/src/environment.py +++ b/src/environment.py @@ -537,11 +537,14 @@ class SalomeEnviron: if src.product.product_is_generated(pi): if "component_name" in pi: - # hack the install directory in order to point on the - # generated product install directory + # hack the source and install directories in order to point + # on the generated product source install directories pi.install_dir = os.path.join(self.cfg.APPLICATION.workdir, "INSTALL", pi.component_name) + pi.source_dir = os.path.join(self.cfg.APPLICATION.workdir, + "GENERATED", + pi.component_name) pi.name = pi.component_name self.set_salome_minimal_product_env(pi, logger) self.set_salome_generic_product_env(pi) -- 2.39.2