Configuration Files For Python

From OpenCircuits
Jump to navigation Jump to search

This is an article started by Russ Hensel, see "http://www.opencircuits.com/index.php?title=Russ_hensel#About My Articles" About My Articles for a bit of info. The page is only partly finished.

Why Configuration Files

Most larger program should have configuration files:

  • Program becomes more flexible without reprogramming.
  • Users can inject their own preferences.
  • The environment changes, requiring that the program adapt.

There are a large number of formats for configuration files, some are accessed only through wizzards to they can have a secret format. Some configuration files are not even really files but instead are entries in a data base. But most are stored in some sort of human readable text format and can be edited with a straight ahead text editor.

Configuration in .py Files

Why Not

Other Links

code