From 9c5d7973d2fc6075843417a2eda9d09cb351ee5c Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 13 Apr 2023 16:29:47 +0100 Subject: [PATCH] Add BuildingIS to SALOME_MODULES --- products/env_scripts/sbim_smodule.py | 5 +++-- products/sbim_smodule.pyconf | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/products/env_scripts/sbim_smodule.py b/products/env_scripts/sbim_smodule.py index c134e9c..5eb380f 100644 --- a/products/env_scripts/sbim_smodule.py +++ b/products/env_scripts/sbim_smodule.py @@ -5,14 +5,15 @@ import os.path import platform def set_env(env, prereq_dir, version): + env.append('SALOME_MODULES', "BuildingIS", ',') env.set('BuildingISHOME', prereq_dir) env.set('BuildingIS_ROOT_DIR', prereq_dir) + product_root_dir=env.get("PRODUCT_ROOT_DIR") env.set('BuildingIS_SRC_DIR', os.path.join(product_root_dir, "SOURCES", "sbim_smodule")) versionPython = env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', env.get('BuildingISHOME')) + env.prepend('PYTHONPATH', prereq_dir) env.prepend('PATH', os.path.join(prereq_dir, 'bin')) env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib', 'salome')) - #env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', 'python')) env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages', 'salome')) def set_nativ_env(env): diff --git a/products/sbim_smodule.pyconf b/products/sbim_smodule.pyconf index 56d4c42..73c5ccb 100644 --- a/products/sbim_smodule.pyconf +++ b/products/sbim_smodule.pyconf @@ -25,5 +25,7 @@ default : properties : { incremental : "yes" + has_salome_gui : "yes" + is_SALOME_module : "yes" } } -- 2.39.2