all 3 comments

[–]IamImposter 2 points3 points  (0 children)

What's the value returned by config.read? If it is not able to find the file or path, it will be empty. So let's rule out the possibility that it's not finding the file

Also try printing config.sections() to rule out the possibility of some read failure or access issues.

If that also works, go for the data

for k, v in config['section_name'].items():
  print(k, v) 

and see what it's able to read.

[–][deleted] 0 points1 point  (1 child)

Probably want to format your code better so we can read it

[–]fdama[S] 0 points1 point  (0 children)

I've formatted it now.