def __init__(self, configPath: str = Resources.getConfigPath('gui-config.json')): self.guiConfig: dict = None self.configPath = configPath self.load()
def writeNewJsonFile(self, key, file): value = self.guiConfig[key] with open(Resources.getConfigPath(file), 'w', encoding="utf-8") as guiConfig: json.dump(value, guiConfig, ensure_ascii=False) return