Skip to content

Commit

Permalink
修正: 辞書更新時のファイルリネームエラー (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
tarepan and Hiroshiba authored Dec 16, 2023
1 parent 3cb454f commit 11f080e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions voicevox_engine/user_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ def update_dict(
コンパイル済み辞書ファイルのパス
"""
random_string = uuid4()
tmp_csv_path = save_dir / f".tmp.dict_csv-{random_string}" # csv形式辞書データの一時保存ファイル
tmp_compiled_path = (
save_dir / f".tmp.dict_compiled-{random_string}"
tmp_csv_path = compiled_dict_path.with_suffix(
f".dict_csv-{random_string}.tmp"
) # csv形式辞書データの一時保存ファイル
tmp_compiled_path = compiled_dict_path.with_suffix(
f".dict_compiled-{random_string}.tmp"
) # コンパイル済み辞書データの一時保存ファイル

try:
Expand Down

0 comments on commit 11f080e

Please sign in to comment.