Re: [Tutor] ConfigParser and multiple option names

2007-04-10 Thread Iyer
wow, Andrei, that is a really very neat solution ! It worked. So it seems configparser is dict based. Thanks a lot for your help. -iyer --- Andrei <[EMAIL PROTECTED]> wrote: > Iyer wrote: > > > > > I cannot change the config file layout -- it is a > > > [dir_options] > > dir="/home/floria

Re: [Tutor] ConfigParser and multiple option names

2007-04-07 Thread Andrei
Iyer wrote: > > I cannot change the config file layout -- it is a > [dir_options] > dir="/home/florian" > dir="/home/john" > what method would you suggest to read each "dir" value > above from the config_file.lay? Internally, the ConfigParser implementation uses dictionaries to store sections

[Tutor] ConfigParser and multiple option names

2007-04-06 Thread Iyer
The problem I have is very similar to this: http://www.thescripts.com/forum/threadnav486400-1-10.html But, I cannot change the config file layout -- it is a read only file, so if I have the contents of the config file (take it as config_file.lay) as [dir_options] dir="/home/florian" dir="/home/