def _loadFactory(self): if len(self._plugins) <= 0: return self._factory = fact.Factory(Movie.getTypeName()) for plug in self._plugins: self._factory.addModule(plug)
def _loadPlugins(self): plugs = pm.PluginManager() plugs.loadPluginsFor(fact.Factory.getTypeName(), Movie.getTypeName()) plugs.registerPluginsFor(fact.Factory.getTypeName(), Movie.getTypeName()) self._plugins = plugs.getPlugins(fact.Factory.getTypeName(), Movie.getTypeName())