From 9e0b1ed39745df96b0c4e77e2a429447e534366c Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 9 Feb 2006 15:07:18 +0000 Subject: [PATCH] SuitRoot only if with ihm / GUI --- bin/launchConfigureParser.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index a9d0c273c..99540b3f3 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -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 -- 2.39.2