help with designing an app. based on ConfigParser

Fuzzyman fuzzyman at gmail.com
Thu Apr 6 14:07:26 EDT 2006


Alexandre CONRAD wrote:
[snip..]
>
> So I told my self, the best way would be able to have a "sub-section". I
> could then look for all servers (aka sub-sections) inside [UPDATE
> SERVERS] and retrieve the needed info. But AFAIK, it's not possible
> having sub-sections with ConfigParser. So I'm here to ask if anyone has
> an efficient trick for that ? Maybe an other module based on
> ConfigParser exists that would allow sub-sections ?
>

ConfigObj allows sub-sections and is also easier to use than
ConfigParser. That says nothing about whether sub-sections are the
right answer to your problem, but at least it is possible. :-)

   http://www.voidspace.org.uk/python/configobj.html

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml


> I might be looking for something too complicated and maybe some simplier
> alternative exists which doesn't cross my mind right now. (no, don't
> tell me to use XML for my config file, it has to be easely modifiable by
> the user using the most basic bloc-note).
>
> Regards,
> --
> Alexandre CONRAD - TLV
> Research & Development
> tel : +33 1 30 80 55 05
> fax : +33 1 30 80 55 06
> 6, rue de la plaine
> 78860 - SAINT NOM LA BRETECHE
> FRANCE




More information about the Python-list mailing list