Bruce wrote:
> I assume that you know the module configobj. I use it like this:
> I have a config_file :
>
> [sec1]
> [[subsec1]]
> a = 1
> b = 2
> [[subsec2]]
> a = 3
> b = 1
>
> .. ans so on
>
> Then in the code I have c = configobj.ConfigObj(path_to_config file)
>
> then I go like for instan
I assume that you know the module configobj. I use it like this:
I have a config_file :
[sec1]
[[subsec1]]
a = 1
b = 2
[[subsec2]]
a = 3
b = 1
.. ans so on
Then in the code I have c = configobj.ConfigObj(path_to_config file)
then I go like for instance
for s in c['sec1']:
print c['sec1