On Thu, Jan 6, 2011 at 10:33 AM, Martin Langhoff <[email protected]> wrote: > there is one aspect of OOB that makes configs rather awkward -- there > is no way (that I can see) to define a "config dir" variable and refer > to it in the .ini file itself, and from modules and scripts.
Turns out ConfigParser handles this just fine -- and it was already trying to interpolate anything with a % in there. We can just drive it -- sample patch attached. SafeConfigParser, OTOH, is stricter and chokes up on some of our values that contain %d . If we don't want any interpolation (it was a surprise to me that ConfigParser interpolates by default) -- we may need to get() the raw values instead. cheers, m -- [email protected] [email protected] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff
0001-Define-oob_config_dir-env-var-and-interpolation.patch
Description: Binary data
_______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
