How to save application settings in a config file?

app-config, ini, python, settings

Solution

The Python standard library includes the `ConfigParser` module, which handles ini-style configuration files for you. It's more than adequate for most uses.

Problem

I am developing a program that has a settings window in which I can change various parameters for my program. What is the best way to read/save them in some kind of config file? I know that some software and games use `.ini` files or similar system. How can I achieve this in Python?

Original source

Related problems