]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CSF_PluginDefaults environment variable should be set to default value only if it...
authorvsr <vsr@opencascade.com>
Wed, 7 Dec 2005 12:24:28 +0000 (12:24 +0000)
committervsr <vsr@opencascade.com>
Wed, 7 Dec 2005 12:24:28 +0000 (12:24 +0000)
bin/runSalome.py

index c4773d189c718681464821f4209195be5c7574ae..0399d6b216c12ccbf4ced1ec7338003a6f37c73e 100755 (executable)
@@ -184,9 +184,12 @@ def set_env(args, modules_list, modules_root_dir):
         if not os.getenv("SalomeAppConfig"): os.environ["SalomeAppConfig"] =  os.getenv("GUI_ROOT_DIR") + "/share/salome/resources"
         pass   
 
-    os.environ["CSF_PluginDefaults"] \
-    = os.path.join(modules_root_dir["KERNEL"],"share",
-                   salome_subdir,"resources")
+    # set CSF_PluginDefaults variable only if it is not customized
+    # by the user
+    if not os.getenv("CSF_PluginDefaults"):
+        os.environ["CSF_PluginDefaults"] \
+        = os.path.join(modules_root_dir["KERNEL"],"share",
+                       salome_subdir,"resources")
     os.environ["CSF_SALOMEDS_ResourcesDefaults"] \
     = os.path.join(modules_root_dir["KERNEL"],"share",
                    salome_subdir,"resources")