]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
SuitRoot only if with ihm / GUI
authorrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 15:07:18 +0000 (15:07 +0000)
committerrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 15:07:18 +0000 (15:07 +0000)
bin/launchConfigureParser.py

index a9d0c273ca2fdb6f1e67db623b5a7b0e8775b302..99540b3f3232a17a4c01db63d5ab0b1c6a0df06e 100755 (executable)
@@ -161,6 +161,17 @@ class xml_parser:
 # -     command line
 
 config_var = appname+'Config'
+# 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
+else :
+    if not os.getenv("SUITRoot"):
+        os.environ["SUITRoot"] = ""
+    if not os.getenv("SalomeAppConfig"):
+        os.environ["SalomeAppConfig"] = ""
+
 dirs = os.environ[config_var]
 dirs = re.split('[;|:]', dirs )
 dirs.reverse() # reverse order, like in "path" variable - FILO-style processing