'Initialize some limited config variables before initialize i18n and loading extensions'

def pre_init_values(self):

    variables = ['needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs']
    for name in variables:
        try:
            if (name in self.overrides):
                self.__dict__[name] = self.convert_overrides(name, self.overrides[name])
            elif (name in self._raw_config):
                self.__dict__[name] = self._raw_config[name]
        except ValueError as exc:
            logger.warning('%s', exc)
