]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Set default values for SUITRoot and SalomeAppConfig variables
authorvsr <vsr@opencascade.com>
Fri, 30 Sep 2005 07:53:51 +0000 (07:53 +0000)
committervsr <vsr@opencascade.com>
Fri, 30 Sep 2005 07:53:51 +0000 (07:53 +0000)
bin/runSalome.py

index e8c4626c7c1b7eadb33c1e957f0fbc2711cdcda4..360577ad822545963cc5f27d77953fe877554cd8 100755 (executable)
@@ -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   
 
 # -----------------------------------------------------------------------------