Adds new streamer_status option in data file.

Used to avoid connecting to twitter streaming API during web development.
This commit is contained in:
Julien Lengrand-Lambert
2013-02-05 09:11:19 +01:00
parent 2eb3d215bc
commit 99bf3c3d2a

View File

@@ -2,6 +2,8 @@
# all inforamation that will be used by other modules
from ConfigParser import SafeConfigParser
from ConfigParser import NoOptionError
import os
import sys
@@ -55,3 +57,10 @@ html = parser.get('html', 'html')
tmpl = parser.get('html', 'tmpl')
html_file = os.path.join(html_root, html)
tmpl_file = os.path.join(html_root, tmpl)
# debug
try:
streamer_status = parser.get('debug', 'streamer')
except NoOptionError:
streamer_status=True # Activates streaming by default