So, I have this settings.ini :
[SETTINGS] value = 1
And this python script
from ConfigParser import SafeConfigParser parser =
As from the examples of the documentation:
https://docs.python.org/2/library/configparser.html
parser.set('SETTINGS', 'value', '15') # Writing our configuration file to 'example.ini' with open('example.ini', 'wb') as configfile: parser.write(configfile)