Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
KakaHiguain committed Sep 19, 2022
1 parent 5d9720f commit 8b97f93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QJZEditor_2_3_1_py3k.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def main(QJZ_date=''):
# 从Editors.ans载入配置信息和排班表,建立字典
chiefeddict = {} # 初始化主编排班的字典
proofdict = {} # 初始化校对排班的字典
with open('setting.txt', 'r') as setting_file:
with open('setting', 'r') as setting_file:
termmode = setting_file.readline().strip() # 第一行存储Term类型
chiefedname = setting_file.readline().strip() # 第二行存储默认主编
with open('Editors.ans', 'r') as editor_file:
Expand Down
2 changes: 2 additions & 0 deletions setting
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
?
?
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def initialize(editoraddlist, editordictupper):
input('')
sys.exit()

with open('setting.txt', 'w') as setting_file:
with open('setting', 'w') as setting_file:
setting_file.write(termmode + '\n')
setting_file.write(chiefedname + '\n')
with open('Editors.ans', 'w') as editor_file:
Expand Down

0 comments on commit 8b97f93

Please sign in to comment.