From c96984e2a064020ce89894716817104c2a598549 Mon Sep 17 00:00:00 2001 From: crouzet Date: Wed, 20 Jan 2021 10:01:55 +0100 Subject: [PATCH] =?utf8?q?gestion=20de=20l'environnement=20incr=C3=A9menta?= =?utf8?q?l=20avec=20un=20script=20python=20(contournement=20pb=20install?= =?utf8?q?=5Fdir)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- products/HOMARD.pyconf | 2 +- products/env_scripts/HOMARD.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 products/env_scripts/HOMARD.py diff --git a/products/HOMARD.pyconf b/products/HOMARD.pyconf index 1767a50..3ff8dc0 100644 --- a/products/HOMARD.pyconf +++ b/products/HOMARD.pyconf @@ -31,7 +31,7 @@ version_8_5_0_to_V9_6_0 : { environ : { - SalomeAppConfig_ : $install_dir + $VARS.sep + "share" + $VARS.sep + "salome" + $VARS.sep + "resources" + $VARS.sep + "homard" + env_script : "HOMARD.py" } depend : ["SMESH","homard_bin"] } diff --git a/products/env_scripts/HOMARD.py b/products/env_scripts/HOMARD.py new file mode 100644 index 0000000..891edeb --- /dev/null +++ b/products/env_scripts/HOMARD.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os + +def set_env(env, product_dir, version): + env.append('SalomeAppConfig', os.path.join(product_dir, 'share', 'salome', 'resources', 'homard')) + +def set_nativ_env(env): + pass -- 2.39.2