changed config structure

This commit is contained in:
2023-11-24 15:01:51 +01:00
parent bf2663e9d7
commit 371c1d3cca
3 changed files with 67 additions and 39 deletions

View File

@@ -5,8 +5,8 @@ from renderer import Renderer
from structure import Structure
class InstructionSetSchema:
def __init__(self, path: str) -> None:
self.config = Config()
def __init__(self, path: str, configPath: str = "config.json") -> None:
self.config = Config(configPath)
self.path = path
self.load()