示例#1
0
    def _loadFactory(self):
        if len(self._plugins) <= 0:
            return

        self._factory = fact.Factory(Movie.getTypeName())
        for plug in self._plugins:
            self._factory.addModule(plug)
示例#2
0
 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())