From: jfa Date: Thu, 12 Jan 2006 13:35:23 +0000 (+0000) Subject: PAL9102: Problem with module name with lower case. X-Git-Tag: T2_2_9pre~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a6b690e0b3c2a819b4b7434adaff306389b610eb;p=modules%2Fkernel.git PAL9102: Problem with module name with lower case. --- diff --git a/bin/runSalome.py b/bin/runSalome.py index df73e4977..073325433 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -59,7 +59,7 @@ def get_config(): to_remove_list=[] for module in modules_list : - module_variable=module.upper()+"_ROOT_DIR" + module_variable=module+"_ROOT_DIR" if not os.environ.has_key(module_variable): print "*******************************************************" print "*" @@ -149,10 +149,18 @@ def set_env(args, modules_list, modules_root_dir): pass if args.has_key("SMESH_plugins"): for plugin in args["SMESH_plugins"]: - if os.environ.has_key(plugin.upper()+"_ROOT_DIR"): + plugin_root = "" + if os.environ.has_key(plugin+"_ROOT_DIR"): + plugin_root = os.environ[plugin+"_ROOT_DIR"] + else: + # workaround to avoid modifications of existing environment + if os.environ.has_key(plugin.upper()+"_ROOT_DIR"): + plugin_root = os.environ[plugin.upper()+"_ROOT_DIR"] + pass + pass + if plugin_root != "": os.environ["SMESH_MeshersList"] \ = os.environ["SMESH_MeshersList"]+":"+plugin - plugin_root = os.environ[plugin.upper()+"_ROOT_DIR"] if not os.environ.has_key("SALOME_"+plugin+"Resources"): os.environ["SALOME_"+plugin+"Resources"] \ = plugin_root+"/share/"+args["appname"]+"/resources" @@ -172,7 +180,8 @@ def set_env(args, modules_list, modules_root_dir): # set environment for SUPERV module os.environ["ENABLE_MACRO_NODE"]="1" - + + pass # -----------------------------------------------------------------------------