Atlas-Install/source/CT_Config/load_ctconfig_file.py

11 lines
No EOL
300 B
Python

import json
def load_ctconfig_file(self, ctconfig_file: str = "./ct_config.json"):
"""
:param ctconfig_file: path to the ctconfig file
:return: ?
"""
with open(ctconfig_file, encoding="utf-8") as f:
ctconfig_json = json.load(f)
self.load_ctconfig_json(ctconfig_json)