From 1c26f7f704465dfb37cc30e9fd8178cdcab68436 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 30 Sep 2005 07:53:51 +0000 Subject: [PATCH] Set default values for SUITRoot and SalomeAppConfig variables --- bin/runSalome.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index e8c4626c7..360577ad8 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -183,7 +183,11 @@ def set_env(args, modules_list, modules_root_dir): # set environment for SUPERV module os.environ["ENABLE_MACRO_NODE"]="1" - + # set resources variables if not yet set + if os.getenv("GUI_ROOT_DIR"): + if not os.getenv("SUITRoot"): os.environ["SUITRoot"] = os.getenv("GUI_ROOT_DIR") + "/share/salome" + if not os.getenv("SalomeAppConfig"): os.environ["SalomeAppConfig"] = os.getenv("GUI_ROOT_DIR") + "/share/salome/resources" + pass # ----------------------------------------------------------------------------- -- 2.39.2