added read_sourceconfiguration function
This commit is contained in:
parent
96a7f5acd4
commit
87ec6e6506
@ -48,6 +48,11 @@ class Configurator:
|
|||||||
else:
|
else:
|
||||||
log.start(logstdout=True, loglevel=log.WARNING)
|
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):
|
def get_section(self, config, sourcename):
|
||||||
section = dict()
|
section = dict()
|
||||||
if config.has_section(sourcename):
|
if config.has_section(sourcename):
|
||||||
|
Reference in New Issue
Block a user