I have very simple problem I want to print everything that's inside session.ini
But it doesn't let me the output is: >> {}
Does somebody have a trick how to print everything inside the session.ini
inside: session.ini
[Session 1]
Data = "session_1.db"
[Session 2]
Data = "session_1.db"
The code:
session = ConfigObj("sessions.ini")
def Session():
for item in session:
print(item)