Hi All,
I have a config file FOO in /etc/sysconfig/. This Linux file is very similar to INI-File, but without a section declaration.
In order to retrieve a value from this file, I used to write a shell script like:
source /etc/sysconfig/FOO
echo $MY_VALUE
Now I want to do the same thing in python. I tried to use ConfigParser, but ConfigParser does not accept such an INI-File similar format, unless it has a section declaration.
Is there any way to retrieve value from such a file?