X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Fconfig.py;h=e2937ca329dceeeab2e4b6e7fc6fbf89aaa89f19;hp=55fea3cbaa11c7753e2c781f19ab06f22b38148c;hb=72c02928f45228d75ff391394800355ecd65e94e;hpb=0a0ee6dbc4993c1c9d21c101f7df53517af120e4 diff --git a/rainbowstream/config.py b/rainbowstream/config.py index 55fea3c..e2937ca 100644 --- a/rainbowstream/config.py +++ b/rainbowstream/config.py @@ -1,6 +1,8 @@ import json +import re import os import os.path +from twitter.util import printNicely # Regular expression for comments comment_re = re.compile( @@ -22,6 +24,12 @@ def load_config(filepath): except: pass +DOMAIN = USER_DOMAIN + +# Image config +IMAGE_SHIFT = 10 +IMAGE_MAX_HEIGHT = 40 + # Load colorset default_config = 'rainbowstream/colorset/default.json' rainbow_config = os.environ.get('HOME', os.environ.get('USERPROFILE','')) + os.sep + '.rainbow_config.json'