Skip to content

Commit

Permalink
Fix import in package
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Mar 11, 2023
1 parent e519a42 commit 7c2b7fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ToMiddleChinese/ToMiddleChinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from opencc import OpenCC
from os import path
import pygtrie
import utils
if __package__:
from . import utils
else:
import utils

here = path.abspath(path.dirname(__file__))

Expand Down

0 comments on commit 7c2b7fc

Please sign in to comment.