Merge branch 'master' into feat/difference_between_additions_and_deletions

This commit is contained in:
Aravind Nair
2023-03-01 01:59:20 +05:30
committed by GitHub

View File

@@ -1,4 +1,4 @@
from os.path import join, isfile from os.path import join, isfile, dirname
from pickle import load as load_pickle, dump as dump_pickle from pickle import load as load_pickle, dump as dump_pickle
from json import load as load_json from json import load as load_json
from typing import Dict, Optional from typing import Dict, Optional
@@ -29,8 +29,8 @@ class FileManager:
:param file: Localization file path, related to current file (in sources root). :param file: Localization file path, related to current file (in sources root).
""" """
with open(join("sources", file), encoding="utf-8") as config_file: with open(join(dirname(__file__), file), encoding="utf-8") as config_file:
data = load_json(config_file) data = load(config_file)
FileManager._LOCALIZATION = data[EM.LOCALE] FileManager._LOCALIZATION = data[EM.LOCALE]
@staticmethod @staticmethod