def loadPlugins(self):
        db = self._db()
        for kind, (module, className, checkFunc
                ) in self.availablePlugins.iteritems():
            if kind in self._loadedPlugins:
                continue
            if isinstance(checkFunc, basestring):
                path = util.joinPaths(db.root, checkFunc)
                try:
                    if not os.stat(path).st_size:
                        continue
                except OSError:
                    continue
            else:
                if not checkFunc():
                    continue
            __import__(module)
            cls = getattr(sys.modules[module], className)
            self._loadedPlugins[kind] = cls(db)
Load a2x configuration file from default locations and --conf-file
dataset/ETHPy150Open sassoftware/conary/conary/local/capsules.py/MetaCapsuleDatabase.loadPlugins--crossover with--dataset/ETHPy150Open FooBarWidget/mizuho/asciidoc/a2x.py/A2X.load_conf