I have this config file:
[test]
one: value1
two: value2
This function return items, values from section test of config file, but when I call the function only return first item (one, value1).
def getItemsAvailable(section):
for (item, value) in config.items(section):
return (item, value)
I call the getItemsAvailable() with this function:
def test():
item, value = getItemsAvailable('test')
print (item, value)
I guess that I should create a list on getItemsAvailable() function, and return the list for read the values on test() function, true?
Any suggestions?
Thanks!!