配置文件兼容带BOM的UTF-8

pull/56/head
John Smith 3 years ago
parent 6a4faa83a4
commit 8780655341

@ -62,7 +62,7 @@ class AppConfig:
def load(self, path):
try:
config = configparser.ConfigParser()
config.read(path, 'utf-8')
config.read(path, 'utf-8-sig')
self._load_app_config(config)
self._load_translator_configs(config)

Loading…
Cancel
Save