Mercurial > hg > pyloader
diff pyloader/factory.py @ 69:b9d9a94bfa19
override section now works
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 09:36:08 -0700 |
parents | 65609d7ba63d |
children | 7ec0ca0134ff |
line wrap: on
line diff
--- a/pyloader/factory.py Thu Jun 09 09:29:06 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:36:08 2011 -0700 @@ -8,6 +8,7 @@ import loader import os import sys +from copy import deepcopy from optparse import OptionParser from ConfigParser import InterpolationDepthError from ConfigParser import InterpolationMissingOptionError @@ -183,7 +184,7 @@ if overridden_section in seen: pass # TODO create_section(overridden_section, iniconfig[overridden_section]) - # TODO: sect = config[path].copy() + sect = deepcopy(config[path]) if 'path' not in sect: # add the path to section dict