# DB files
*.db
+
+# Editor
+*sublime*
+.tag*
+
+# Virtualenv
+/venv/*
+
+# History completer
+completer.hist
\ No newline at end of file
# Load default colorset
c = {}
-default_config = 'rainbowstream/colorset/default.json'
+default_config = os.path.dirname(__file__) + '/colorset/default.json'
data = load_config(default_config)
for d in data:
c[d] = data[d]
os.environ.get('USERPROFILE',
'')) + os.sep + '.rainbow_config.json'
else:
- config = 'rainbowstream/colorset/'+c['theme']+'.json'
+ config = os.path.dirname(__file__) + '/colorset/'+c['theme']+'.json'
# Load new config
data = load_config(config)
if data:
g['decorated_name'] = color_func(c['DECORATED_NAME'])('[' + name + ']: ')
g['ascii_art'] = True
- files = os.listdir('rainbowstream/colorset')
+ files = os.listdir(os.path.dirname(__file__)+'/colorset')
themes = [f.split('.')[0] for f in files if f.split('.')[-1] == 'json']
themes += ['custom']
g['themes'] = themes
try:
# Load new config
if g['stuff'] != 'custom':
- new_config = 'rainbowstream/colorset/' + g['stuff'] + '.json'
+ new_config = os.path.dirname(__file__) + '/colorset/' + g['stuff'] + '.json'
else:
new_config = os.environ.get(
'HOME',os.environ.get(