Skip to content

Commit e39dfc8

Browse files
committed
fixed pathing for translate.json to work with pyinstaller
1 parent bb23ad2 commit e39dfc8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

translator/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import json
2+
import os
23

34
from nut import Config, Print
45

5-
DEFAULT_TRANSLATION_FILE = 'public_html/translate.json'
6+
DEFAULT_TRANSLATION_FILE = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../public_html/translate.json'))
67
ENGLISH_LANG_ID = "None"
78

89
_initialized = False

0 commit comments

Comments
 (0)