Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoFANGUK committed Dec 21, 2021
1 parent e333371 commit 814cb61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
MODE_CONFIG_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini')
if not os.path.exists(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini')):
# 如果没有配置文件,默认使用中文
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini'), mode='w', encoding='uft-8') as f:
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.ini'), mode='w', encoding='utf-8') as f:
f.write('[DEFAULT]\n')
f.write('Interface = 简体中文\n')
f.write('Language = ch\n')
Expand Down
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _interface_event_handler(self, event, values):
@staticmethod
def set_config(config_file, interface, language_code, mode):
# 写入配置文件
with open(config_file, mode='w', encoding='uft-8') as f:
with open(config_file, mode='w', encoding='utf-8') as f:
f.write('[DEFAULT]\n')
f.write(f'Interface = {interface}\n')
f.write(f'Language = {language_code}\n')
Expand Down

1 comment on commit 814cb61

@YaoFANGUK
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太蠢了

Please sign in to comment.