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??
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??
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()