Re: [Tutor] setting program configuration for all files and modules of a program

2008-04-14 Thread Kent Johnson
Tim Michelsen wrote: > What is the state of the art in storing and parsing configuraions in > python programs? It is pretty common to have a configuration module that is imported wherever the configuration is needed. This is simple but it is essentially global state and shares some of the disad

[Tutor] setting program configuration for all files and modules of a program

2008-04-14 Thread Tim Michelsen
Hello, I am building a simple GUI for a calculation program. I am using config files (*.cfg) and reading them in with ConfigParser. This works well because I have nearly all code in 1 text file. But I would like to modularize my code and separate the GUI code from the functional code that provid