|
From: Andrew G. <and...@gm...> - 2010-08-05 09:36:55
|
On Thu, Aug 5, 2010 at 1:31 AM, Tom <to...@go...> wrote: > Hi, > > i want to find values which are in the configspec but not in the config > file and i want to fill the config file with the default values from the > configspec. How to do this? > Just the validate the config with the configspec and the spec defaults will be used. If you plan to rewrite the config file with defaults from the configspec you may want to set copy=True. http://www.voidspace.org.uk/python/configobj.html#validate ~Andrew |