os-builder: define a variable for the config dir?
Martin Langhoff
martin.langhoff at gmail.com
Thu Jan 6 11:47:17 EST 2011
On Thu, Jan 6, 2011 at 10:33 AM, Martin Langhoff
<martin.langhoff at gmail.com> 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
--
martin.langhoff at gmail.com
martin at laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Define-oob_config_dir-env-var-and-interpolation.patch
Type: application/octet-stream
Size: 2395 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20110106/796ca2c3/attachment.obj>
More information about the Devel
mailing list