jellyfin/src/config.py
2023-04-06 11:58:04 +07:00

14 lines
288 B
Python

"""handle config file"""
import json
from src.static_types import ConfigType
def get_config() -> ConfigType:
"""get connection config"""
with open("config.json", "r", encoding="utf-8") as f:
config_content: ConfigType = json.loads(f.read())
return config_content