cdosea-play/cdoseaplay/config.py
2021-12-29 11:47:31 +01:00

20 lines
438 B
Python

import json
import os
import sys
base = 'https://cdosea.0x2620.org/static/render/'
lang = '1080p'
start = ''
lights = False
font = 'Menlo'
# SimHei for chinese
font_size = 28
# 30 for chinese
conf = os.path.expanduser('~/.config/cdosea.json')
if os.path.exists(conf):
with open(conf) as fd:
config = json.load(fd)
_this = sys.modules[__name__]
for key in config:
setattr(_this, key, config[key])