Configparser Getting Value From Ini File With Section And Subsection As Shown Below
I have a following type of INI file [section1][subsection1] port=989 [section1][subsection2] somethign=somethign I am using ConfigParser of Python to parse the INI file but I am
Solution 1:
It appears that ConfigParser ignores subsections. If you absolutely need subsections, you may want to try alternative parsers such as ConfigObj (PyPi, tutorial)
And here is an answer to an older question: https://stackoverflow.com/a/3008051/49412
Post a Comment for "Configparser Getting Value From Ini File With Section And Subsection As Shown Below"