# HG changeset patch # User Jeff Hammel # Date 1307636754 25200 # Node ID 236af713bbc0c8a2fe527a9bad27ed9b32ff1228 # Parent 2a9274608af39b600f8d1c2b014d8b892d5a413d move setting the configuration to later so that we can easily move around sect diff -r 2a9274608af3 -r 236af713bbc0 pyloader/factory.py --- a/pyloader/factory.py Thu Jun 09 09:24:45 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:25:54 2011 -0700 @@ -184,7 +184,7 @@ # make a dict for the section path = path % defaults - sect = config[name] = dict(path=path) + sect = dict(path=path) # get arguments from .ini options for option, value in options.items(): @@ -193,6 +193,9 @@ else: # keyword arguments sect.setdefault('kwargs', {})[option] = value + # set the configuration + config[name] = sect + # get the object definitions for section, options in iniconfig.items(): seen.add(section)