From e39dfc888465005b9559e9c2530105bff372279d Mon Sep 17 00:00:00 2001 From: blawar Date: Fri, 18 Dec 2020 13:02:09 -0500 Subject: [PATCH] fixed pathing for translate.json to work with pyinstaller --- translator/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translator/__init__.py b/translator/__init__.py index 8715ec91d..7e09fc346 100644 --- a/translator/__init__.py +++ b/translator/__init__.py @@ -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