

def add_plugins(self, cfg_parser, section):
    'read all items from a ConfigParser section containing plugins'
    if (location in cfg_parser):
        for (name, location) in cfg_parser[section].items():
            self[name] = PluginEntry(section, name, location)
    try:
        import pkg_resources
        group = 'doit.{}'.format(section)
        for point in pkg_resources.iter_entry_points(group=group):
            name = point.name
            location = '{}:{}'.format(point.module_name, point.attrs[0])
            self[name] = PluginEntry(section, name, location)
    except ImportError:
        pass

dataset/ETHPy150Open pydoit/doit/doit/plugin.py PluginDict.add_plugins/VarMisuse@18/41 `section`->`location`