I have a configuration file that I would like to change settings to from a python script. Here is my skeleton code:
config = ConfigParser()
config.read('settings.conf')
config.set("SCRIPT", "SOMEFIELD", "%s"%SOMEVALUE)
config.write(open("settings.conf","wb"))
This works fine, however it writes everything to one line. I might be being a bit picky, but would like to have new lines after each configurations field and section so that the file is human readable.