My ConfigParser.ini file looks like:
[Filenames]
Table1={"logs.table2",92}
Table2=("logs.table2",91)
Table3=("audit.table3",34)
Table4=("audit.table4",85)
and now for example for Table1, I would like to get "logs.table2" value and 92 as separate variables.
import configparser
filename=config.get('FIlenames','Table1')
As result I would like to get:
print(filename) -> logs.table2
print(filenumber) -> 92
For now output is just a string ""logs.table2",92". Truly I have no idea how to handle that, maybe I should modify my config file? What is the best aproach?