From: vsr Date: Fri, 30 Sep 2005 07:53:51 +0000 (+0000) Subject: Set default values for SUITRoot and SalomeAppConfig variables X-Git-Tag: V3_1_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c26f7f704465dfb37cc30e9fd8178cdcab68436;p=modules%2Fkernel.git Set default values for SUITRoot and SalomeAppConfig variables --- 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 # -----------------------------------------------------------------------------