2017-10-12 16:45:57 +00:00
|
|
|
import json
|
2017-10-16 18:31:44 +00:00
|
|
|
import os
|
|
|
|
import sys
|
2017-10-12 16:45:57 +00:00
|
|
|
|
|
|
|
base = 'https://cdosea.0x2620.org/static/render/'
|
|
|
|
lang = '1080p'
|
|
|
|
start = ''
|
2017-10-16 18:31:44 +00:00
|
|
|
lights = False
|
2018-07-02 14:54:12 +00:00
|
|
|
font = 'Menlo'
|
2017-10-16 18:31:44 +00:00
|
|
|
|
|
|
|
|
2017-10-12 16:45:57 +00: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 18:31:44 +00:00
|
|
|
_this = sys.modules[__name__]
|
|
|
|
for key in config:
|
|
|
|
setattr(_this, key, config[key])
|