3.4.1 Configuration Files

The Dict4Ini module (http://cheeseshop.python.org/pypi/Dict4Ini/0.4) is used to process configuration files, and in included with the distribution so that you do not need to download and install it. Dict4Ini objects can be addressed as though they are standard Python dictionaries, which made it very easy to add configuration file support to PyPedal. Configuration files consist of simple keyword = value pairs on separate lines3.1, and may include comments.
# new_options.ini
# This is an example of a PyPedal configuration file.
pedfile = new_lacy.ped
pedformat = asd
pedname = Lacy Pedigree
If neither an options dictionary nor a configuration file name is provided, pyp_newclasses.loadPedigree() will try and load the file named pypedal.ini.

Footnotes

... lines3.1
Please note that the Dict4Ini documentation referrs to sections. Sections are very commonly used in configuration files, but PyPedal does not use them.
See About this document... for information on suggesting changes.