# HG changeset patch # User Jeff Hammel # Date 1307636946 25200 # Node ID 65609d7ba63dab78d8c2016bdf63b08a64beaa5f # Parent 236af713bbc0c8a2fe527a9bad27ed9b32ff1228 move around when we create the (local) section dict so that we can override it as desired diff -r 236af713bbc0 -r 65609d7ba63d pyloader/factory.py --- a/pyloader/factory.py Thu Jun 09 09:25:54 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:29:06 2011 -0700 @@ -122,6 +122,9 @@ # split up the section identifier name, path = section.split(':', 1) + # make a dict for the section + sect = {} + # interpret decorators if ':' in path: wrapper, _path = path.split(':', 1) @@ -180,11 +183,12 @@ if overridden_section in seen: pass # TODO create_section(overridden_section, iniconfig[overridden_section]) - # TODO: options = config[path].copy() + # TODO: sect = config[path].copy() - # make a dict for the section - path = path % defaults - sect = dict(path=path) + if 'path' not in sect: + # add the path to section dict + path = path % defaults + sect['path'] = path # get arguments from .ini options for option, value in options.items():