298 """ |
298 """ |
299 Private method to insert the valid plugin paths intos the search path. |
299 Private method to insert the valid plugin paths intos the search path. |
300 """ |
300 """ |
301 for key in self.__priorityOrder: |
301 for key in self.__priorityOrder: |
302 if key in self.pluginDirs: |
302 if key in self.pluginDirs: |
303 if not self.pluginDirs[key] in sys.path: |
303 if self.pluginDirs[key] not in sys.path: |
304 sys.path.insert(2, self.pluginDirs[key]) |
304 sys.path.insert(2, self.pluginDirs[key]) |
305 UI.PixmapCache.addSearchPath(self.pluginDirs[key]) |
305 UI.PixmapCache.addSearchPath(self.pluginDirs[key]) |
306 |
306 |
307 if self.__develPluginFile: |
307 if self.__develPluginFile: |
308 path = Utilities.splitPath(self.__develPluginFile)[0] |
308 path = Utilities.splitPath(self.__develPluginFile)[0] |