From a25e3d9feaca24c762dbfe520af6765bd05f9676 Mon Sep 17 00:00:00 2001 From: pseusys Date: Tue, 28 Feb 2023 13:40:45 +0100 Subject: [PATCH] file not found translation error fixed --- sources/manager_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/manager_file.py b/sources/manager_file.py index 741b681..424fd7e 100644 --- a/sources/manager_file.py +++ b/sources/manager_file.py @@ -28,7 +28,8 @@ class FileManager: :param file: Localization file path, related to current file (in sources root). """ - with open(join("sources", file), encoding="utf-8") as config_file: + translation_path = join("sources", file) if EM.DEBUG_RUN else file + with open(translation_path, encoding="utf-8") as config_file: data = load(config_file) FileManager._LOCALIZATION = data[EM.LOCALE]