-# This is RainbowStream App info
-CONSUMER_KEY = 'Xk1DGhR1FJa4xjg7GbdogzLJw'
-CONSUMER_SECRET = 'SpHtDmbSGCSm55AAlIeb2PsD3kGEzxyo1325rJgrND5abeOh2T'
+from .colors import *
+import json
+import os
+import os.path
-# Max Search record
+# 'search': max search record
SEARCH_MAX_RECORD = 5
-# Default home tweet
+# 'home': default number of home's tweets
HOME_TWEET_NUM = 5
+# 'allrt': default number of retweets
+RETWEETS_SHOW_NUM = 5
+# 'inbox','sent': default number of direct message
+MESSAGES_DISPLAY = 5
+# 'trend': max trending topics
+TREND_MAX = 10
+# 'switch': Filter and Ignore list ex: ['@fat','@mdo']
+ONLY_LIST = []
+IGNORE_LIST = []
+# Autocomplete history file name
+HISTORY_FILENAME = 'completer.hist'
-# Stream Domain
-USER_DOMAIN = 'userstream.twitter.com',
-PUBLIC_DOMAIN = 'stream.twitter.com',
-SITE_DOMAIN = 'sitestream.twitter.com',
-# Actually called
+USER_DOMAIN = 'userstream.twitter.com'
+PUBLIC_DOMAIN = 'stream.twitter.com'
+SITE_DOMAIN = 'sitestream.twitter.com'
DOMAIN = USER_DOMAIN
+
+# Image config
+IMAGE_SHIFT = 10
+IMAGE_MAX_HEIGHT = 40
+
+# Load colorset
+default_colorset = 'rainbowstream/colorset/default.json'
+try:
+ if os.path.exists(default_colorset):
+ data = json.load(open(default_colorset))
+ for d in data:
+ locals()[d] = local()[data[d]]
+except:
+ pass
+
+# Load json config
+rainbow_config = os.environ.get('HOME', os.environ.get('USERPROFILE','')) + os.sep + '.rainbow_config.json'
+try:
+ if os.path.exists(rainbow_config):
+ data = json.load(open(rainbow_config))
+ for d in data:
+ locals()[d] = local()[data[d]]
+except:
+ pass
+
+