2017-10-12 18:45:57 +02:00
|
|
|
import json
|
2017-10-16 20:31:44 +02:00
|
|
|
import os
|
|
|
|
import sys
|
2017-10-12 18:45:57 +02:00
|
|
|
|
|
|
|
base = 'https://cdosea.0x2620.org/static/render/'
|
|
|
|
lang = '1080p'
|
|
|
|
start = ''
|
2017-10-16 20:31:44 +02:00
|
|
|
lights = False
|
2023-10-06 23:21:26 +01:00
|
|
|
lanbox = False
|
2018-07-02 16:54:12 +02:00
|
|
|
font = 'Menlo'
|
2021-12-29 11:47:31 +01:00
|
|
|
# SimHei for chinese
|
2018-07-31 09:37:42 +02:00
|
|
|
font_size = 28
|
2021-12-29 11:47:31 +01:00
|
|
|
# 30 for chinese
|
2017-10-16 20:31:44 +02:00
|
|
|
|
2023-12-19 13:26:25 +00:00
|
|
|
letter_offset = False
|
|
|
|
|
2017-10-12 18:45:57 +02:00
|
|
|
conf = os.path.expanduser('~/.config/cdosea.json')
|
|
|
|
if os.path.exists(conf):
|
|
|
|
with open(conf) as fd:
|
|
|
|
config = json.load(fd)
|
2017-10-16 20:31:44 +02:00
|
|
|
_this = sys.modules[__name__]
|
|
|
|
for key in config:
|
|
|
|
setattr(_this, key, config[key])
|