Issue of configparser

I try to use configparser and I do everything following youtube video but I got result of
when try to run the code instead of result in config file. I also put the file in the same folder or create ini file in VS code and write from VS code and it does the same result. Please advice how to get through this issue.


I just tried your example with Python 3.8.5 and the output from your test program was:

[‘Test’, ‘param’]

I tried running your program with the variable ‘file’ set to a non-existent filename and I got the empty list result like you did so maybe you didn’t run the script in the same directory as config.ini?

1 Like

I found the solution that I have to use the relative path to link the config file.

Thank you.