On Tue, 2011-03-08 at 15:32 +0000, Nick Nachefski wrote:
> How can I get a func module to parse config items from a section other
> than “[main]”?

Without checking what func uses to store/retrieve configuration
settings, this is what i always use:


from configobj import ConfigObj
config = ConfigObj('your_config_file')
section = config['other']
other_var = section['other_var']
print "The value is %s" % other_var

HTH

regards,

Léon


_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to