update code to use new config class

This commit is contained in:
2024-04-03 12:42:19 +02:00
parent ef0a842334
commit 8828b06d2f
2 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -1,12 +1,11 @@
from classes.GameBoard import GameBoard
from my_helpers.Config import Config
from json import load as json_load
import logging
import lzma, os
if __name__ == '__main__':
with open("config.json", "r") as f:
CONFIG = json_load(f)
CONFIG = Config("config.json")
if CONFIG["logging"]["enabled"]:
os.makedirs(CONFIG['logging']['file']['path'], exist_ok=True)