@@ -20,7 +20,7 @@ class settings_manager (object):
def settings(self):
return self.__settings
- def convert(self):
+ def __convert(self):
"""
Заполнить объект настроек
Raises:
@@ -67,4 +67,6 @@ class settings_manager (object):
with open(settings_file, "r", encoding="UTF-8") as read_file:
self.__data = json.load(read_file)
+ self.__convert()
+
return True
@@ -63,7 +63,6 @@ class test_settings(unittest.TestCase):
# Действие
man.open(f"{self.projdir}/cfg/settings.json")
- man.convert()
settings = man.settings
dict = settings.__dict__