On this page
article
Read INI Config
Load .ini configuration files.
Category: configparser
Problem
Load .ini configuration files.
Solution
cfg = ConfigParser(); cfg.read('app.ini')
Notes
- Adapt variable names and paths to your project
- Add error handling for production use
- See related chapters in the Learning Path