def __init__(self, parent=None): # Load the installed plugins and read their metadata self.PluginManager = PluginManagerSingleton.get() self.PluginManager.setCategoriesFilter({'Input': InputPlugin}) self.PluginManager.setPluginPlaces(GeneralUtilities.getPluginDirs()) self.PluginManager.locatePlugins() self.PluginManager.collectPlugins() QDialog.__init__(self, parent) self.ui = Ui_PluginsConfigurationDialog() self.ui.setupUi(self)
def __init__(self, parent=None): # Load the installed plugins and read their metadata self.PluginManager = PluginManagerSingleton.get() self.PluginManager.setCategoriesFilter({'Input': InputPlugin}) self.PluginManager.setPluginPlaces([os.path.join(os.getcwdu(), 'plugins')]) self.PluginManager.locatePlugins() self.PluginManager.loadPlugins() # Load the UI from the python file QDialog.__init__(self, parent) self.ui = Ui_PluginsConfigurationDialog() self.ui.setupUi(self)