]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
salome_pluginsmanager less verbose
authorGilles DAVID <gilles-g.david@edf.fr>
Thu, 23 Mar 2017 16:25:30 +0000 (17:25 +0100)
committerGilles DAVID <gilles-g.david@edf.fr>
Thu, 23 Mar 2017 16:25:30 +0000 (17:25 +0100)
src/SalomeApp/salome_pluginsmanager.py

index 19d49c6d6d0ca3dfa137a80c957fd45251424e21..3b5f3d2fafab9dcd505be6f9a112c207ae1c4307 100644 (file)
@@ -164,13 +164,16 @@ class PluginsManager:
         # MODULES plugins are supposed to be located in the
         # installation folder of the module, in the subdirectory
         # "share/salome/plugins". We first look for these directories.
-        for key in list(os.environ.keys()):
+        searched = []
+        for key in os.environ.keys():
           if key.endswith("_ROOT_DIR"):
             rootpath=os.environ[key]
             dirpath=os.path.join(rootpath,PLUGIN_PATH_PATTERN)
-            if os.path.isdir(dirpath) and dirpath not in self.plugindirs:
+            if os.path.isdir(dirpath) and dirpath not in self.plugindirs + searched:
               logger.debug("Looking for plugins in the directory %s ..."%dirpath)
               walktree(dirpath,self.analyseFile)
+              if dirpath not in self.plugindirs and dirpath not in searched:
+                searched.append(dirpath)
 
         # USER plugins directory
         user_dir = os.path.expanduser("~/.config/salome/Plugins")