From 87ec6e6506d2da848a7a34d52a582e2d86fa6dfe Mon Sep 17 00:00:00 2001 From: RTB Date: Sun, 8 Jun 2014 19:03:01 +0200 Subject: [PATCH] added read_sourceconfiguration function --- utils/configurator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/configurator.py b/utils/configurator.py index db6c111..658cf4b 100644 --- a/utils/configurator.py +++ b/utils/configurator.py @@ -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):