Delete a config key
"""
path = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
- try:
+ try:
data = load_config(path)
except:
raise Exception('Config file is messed up.')
"""
Reload config
"""
- try:
- rainbow_config = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
+ try:
+ rainbow_config = os.path.expanduser("~") + \
+ os.sep + '.rainbow_config.json'
data = load_config(rainbow_config)
for d in data:
c[d] = data[d]
c['message_dict'] = []
# Image on term
c['IMAGE_ON_TERM'] = args.image_on_term
- set_config('IMAGE_ON_TERM',str(c['IMAGE_ON_TERM']))
+ set_config('IMAGE_ON_TERM', str(c['IMAGE_ON_TERM']))
# Mute dict
c['IGNORE_LIST'] += build_mute_dict()