Mercurial > hg > pyloader
changeset 18:d303a5883991
even more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 May 2011 19:12:56 -0700 |
parents | 11039ffec62a |
children | 8987867698ee |
files | pyloader/factory.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pyloader/factory.py Fri May 27 19:06:22 2011 -0700 +++ b/pyloader/factory.py Fri May 27 19:12:56 2011 -0700 @@ -98,4 +98,16 @@ parser = ConfigParser(defaults=defaults) parser.optionxform = str # use whole case parser.read(self.inifile) + + # parse configuration + config = {} + for section in parser.sections(): + + # sanity check + assert ':' in section, "No : in section: %s" % section + name, path = section.split(':', 1) + sect = config[name] = dict(path=path) + for option in parser.options(section): + pass +