def listOfPlugins(): global _pluginsAlreadyLoaded # Hack to get round bug in loadPlugins if not _pluginsAlreadyLoaded: tpc.loadPlugins (_pluginManager) _pluginsAlreadyLoaded = True aList = [] names = tpc.getPluginLibraryNames (_pluginManager) n = tpc.getNumberOfPlugins (_pluginManager) print names print n # This is a hack to get round thelack of metadata in the plugin # Will be resolved in next revision of library for i in range (0, n): handle = tpc.getPlugin(_pluginManager, names[i]) info = tpc.getPluginInfo (handle) info = info.split ("\n") hint = info[2] hint = hint.replace("Category......................", "") aList.append ([names[i], hint]) return aList
def listOfPlugins(): global _pluginsAlreadyLoaded # Hack to get round bug in loadPlugins if not _pluginsAlreadyLoaded: tpc.loadPlugins(_pluginManager) _pluginsAlreadyLoaded = True aList = [] names = tpc.getPluginLibraryNames(_pluginManager) n = tpc.getNumberOfPlugins(_pluginManager) print names print n # This is a hack to get round thelack of metadata in the plugin # Will be resolved in next revision of library for i in range(0, n): handle = tpc.getPlugin(_pluginManager, names[i]) info = tpc.getPluginInfo(handle) info = info.split("\n") hint = info[2] hint = hint.replace("Category......................", "") aList.append([names[i], hint]) return aList
def loadPlugins(self): tpc.loadPlugins (self.pluginsManager)
def loadPlugins(self): tpc.loadPlugins(self.pluginsManager)