From: rahuel Date: Thu, 9 Feb 2006 15:07:18 +0000 (+0000) Subject: SuitRoot only if with ihm / GUI X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e0b1ed39745df96b0c4e77e2a429447e534366c;p=modules%2Fkernel.git SuitRoot only if with ihm / GUI --- 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