Archived
1
0

added read_sourceconfiguration function

This commit is contained in:
RTB 2014-06-08 19:03:01 +02:00
parent 96a7f5acd4
commit 87ec6e6506

View File

@ -48,6 +48,11 @@ class Configurator:
else:
log.start(logstdout=True, loglevel=log.WARNING)
def read_sourceconfiguration(self):
config = ConfigParser.ConfigParser()
config.read('sources.cfg') # [TODO]: should be softcoded eventually
return config
def get_section(self, config, sourcename):
section = dict()
if config.has_section(sourcename):