Skip to content

Commit

Permalink
fix opencc compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Jan 22, 2024
1 parent 3e4b9eb commit 5529919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ def asset_loader(name, mod=False):
use_cc = False
try:
import opencc
s2t = opencc.OpenCC('s2t.json')
t2s = opencc.OpenCC('t2s.json')
s2t = opencc.OpenCC('s2t')
t2s = opencc.OpenCC('t2s')
use_cc = True
except:
print("OpenCC not found.")
Expand Down

0 comments on commit 5529919

Please sign in to comment.