Skip to content

Commit

Permalink
fix: 修改配置失效
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Oct 19, 2024
1 parent 98c9c2c commit cd5cfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def save_config(self, new_cfg):
temp_file_path = temp_file.name

# 写入成功后用临时文件替换目标文件
os.replace(temp_file_path, self._config_path)
shutil.move(temp_file_path, self._config_path)

def get_config_path(self):
return os.path.dirname(self._config_path)
Expand Down

0 comments on commit cd5cfa0

Please sign in to comment.