def __init__(self, config_module):
        self.log = logging.getLogger('BrutalConfig')

        for setting in dir(global_config):
            if setting == setting.upper():
                setattr(self, setting, getattr(global_config, setting))

        self.CONFIG_MODULE = config_module

        try:
            config = importlib.import_module(self.CONFIG_MODULE)
        except ImportError:
            raise ImportError('{0} module cannot be found in sys.path'.format(self.CONFIG_MODULE))
        else:
            self.log.debug('got config {0!r}: {1!r}'.format(self.CONFIG_MODULE, config))

        for setting in dir(config):
            if setting == setting.upper():
                setattr(self, setting, getattr(config, setting))

        INSTALLED_PLUGINS = getattr(self, 'INSTALLED_PLUGINS', [])
        # bots = getattr(self, 'BOTS', None)
        # self.log.debug('bots: {0!r}'.format(bots))

        self.PLUGINS = []
        for plugin in INSTALLED_PLUGINS:
            try:
                # this creates really awful failure scenarios
                self.log.debug('loading plugin: {0!r}'.format(plugin))
                module = importlib.import_module(plugin)
            except __HOLE__:
                self.log.exception('{0} module cannot be found in sys.path'.format(plugin))
                raise ImportError('{0} module cannot be found in sys.path'.format(plugin))
            else:
                self.log.debug('success!')
                self.PLUGINS.append(module)
dataset/ETHPy150Open Netflix/brutal/brutal/conf/__init__.py/BrutalConfig.__init__