Skip to content

Commit

Permalink
解决路径生成错误
Browse files Browse the repository at this point in the history
  • Loading branch information
XDawned authored May 10, 2023
1 parent 7752481 commit cd0850c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func/lang_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def update_lang(lang: dict) -> dict:

def make_output_path(path: Path) -> Path:
parts = list(path.parts)
parts[0] = 'zh_cn.json'
parts[-1] = 'zh_cn.json'
output_path = Path(*parts)
output_path.parent.mkdir(parents=True, exist_ok=True)
return output_path
Expand Down

0 comments on commit cd0850c

Please sign in to comment.