You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
414 B
10 lines
414 B
import json
|
|
import munch
|
|
import os
|
|
path = os.path.dirname(__file__)
|
|
with open(os.path.join(path,'defaults.json')) as d,open(os.path.join(path,'keycodes.json')) as k:
|
|
defaults = munch.munchify(json.load(d))
|
|
keycodes = munch.munchify(json.load(k))
|
|
for key,value in defaults['local'].items():
|
|
defaults['local'][key] = os.path.expandvars(value)
|
|
loaded = munch.Munch(defaults = defaults,keycodes = keycodes)
|