Skip to content

Commit

Permalink
fixed pathing for translate.json to work with pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
blawar committed Dec 18, 2020
1 parent bb23ad2 commit e39dfc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion translator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import json
import os

from nut import Config, Print

DEFAULT_TRANSLATION_FILE = 'public_html/translate.json'
DEFAULT_TRANSLATION_FILE = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../public_html/translate.json'))
ENGLISH_LANG_ID = "None"

_initialized = False
Expand Down

0 comments on commit e39dfc8

Please sign in to comment.