def add_plugins(self, cfg_parser, section):
        """read all items from a ConfigParser section containing plugins"""
        # plugins from INI file
        if section in cfg_parser:
            for name, location in cfg_parser[section].items():
                self[name] = PluginEntry(section, name, location)

        # plugins from pkg_resources
        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: # pragma: no cover
            pass  # ignore, if setuptools is not installed
dataset/ETHPy150Open pydoit/doit/doit/plugin.py/PluginDict.add_plugins/original