+# Load init if exist
+try:
+ path = os.path.dirname(__file__) + '/colorset/init'
+ f = open(path)
+ lines = f.readlines()
+ if len(lines) > 1:
+ raise Exception('More than 1 default theme')
+ theme_name = lines[0].strip()
+ default_config = os.path.dirname(
+ __file__) + '/colorset/' + theme_name + '.json'
+ data = load_config(default_config)
+ for d in data:
+ c[d] = data[d]
+ c['theme'] = theme_name
+ f.close()
+except:
+ pass