I'm setting up a script where I need to take several variable from my config at the same time. I've set my config as: config = configparser.ConfigParser()
.
I've tried to take these variables using *
symbol.
[part1]
variable1 = 10
variable2 = 20
I've tried to take it with:
variable = config.get('part1', 'variable*')
but this way doesn't work.
I search a way to realize that, in order to get it into a list for example. Thanks in advance.