Mercurial > hg > pyloader
comparison pyloader/factory.py @ 18:d303a5883991
even more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 May 2011 19:12:56 -0700 |
parents | edecb6fbd5a7 |
children | 8987867698ee |
comparison
equal
deleted
inserted
replaced
17:11039ffec62a | 18:d303a5883991 |
---|---|
96 defaults={'here': here, | 96 defaults={'here': here, |
97 'this': os.path.abspath(self.inifile)} | 97 'this': os.path.abspath(self.inifile)} |
98 parser = ConfigParser(defaults=defaults) | 98 parser = ConfigParser(defaults=defaults) |
99 parser.optionxform = str # use whole case | 99 parser.optionxform = str # use whole case |
100 parser.read(self.inifile) | 100 parser.read(self.inifile) |
101 | |
102 # parse configuration | |
103 config = {} | |
104 for section in parser.sections(): | |
105 | |
106 # sanity check | |
107 assert ':' in section, "No : in section: %s" % section | |
108 name, path = section.split(':', 1) | |
109 sect = config[name] = dict(path=path) | |
110 for option in parser.options(section): | |
111 pass | |
112 | |
101 | 113 |