def __init__(self):
        try:
            settings_module = os.environ[ENVIRONMENT_VARIABLE]
            if not settings_module:
                raise KeyError
        except __HOLE__:
            raise ImportError("Flexisettings cannot be imported, " \
                "because environment variable %s is undefined." \
                % ENVIRONMENT_VARIABLE
            )
        self._settings_module = settings_module
        self._settings_path = self._get_mod_dir(settings_module)

        self._import_settings()
        if self._globals['FLEXI_LAYOUT_DISCOVERY']:
            self._layout_discovery()
        if self._globals['FLEXI_AUTORELOAD']:
            for module, modfile in self._wrapped_modules.iteritems():
                # add this module to sys.modules
                sys.modules['flexisettings.wrapped.%s' % module] = MockModule(module, modfile)

    # old-style class attribute lookup
dataset/ETHPy150Open hrbonz/django-flexisettings/flexisettings/settings.py/FlexiSettingsProxy.__init__