tubearchivist-server/tubearchivist/web/src/ta_config.py

16 lines
272 B
Python

"""read out config file"""
import json
def get_config():
""" read config file """
config_path = "config.json"
with open(config_path, "r", encoding="utf-8") as config_file:
data = config_file.read()
config = json.loads(data)
return config