update code to use new config class
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user