def __read_cfg(self, filenames):
config = configparser.SafeConfigParser()
try:
self._used_filenames = config.read(filenames)
except EnvironmentError as e:
# note: this file is mission crucial, so fail badly if this is not readable.
raise ReadConfigException("FATAL ERROR: could not read default configuration"
" file %s\n%s" % (self.default_config_file, e))
return config
评论列表
文章目录