tags:

views:

41

answers:

1

hi, I have made a Config file and have multiple values for a keyword as:

[section]

database: mysql , sqlite

and i want to access the values separately..How to go about it??

+1  A: 

How about using standard ConfigParser and not using comma?

[section]

database: mysql sqlite

When you get the variable, just split it:

databases = configparser.get('database').split()
eumiro
thanks it worked!
rushi
@rushi: Great! Don't be afraid to accept answers also on your previous questions.
eumiro