[Tutor] The best way to implement a config file ???

Kent Johnson kent37 at tds.net
Thu Feb 1 15:18:11 CET 2007

Andreas Kostyrka wrote:
> * Magnus Wirström <asdlinux at yahoo.se> [070201 14:38]:
>> Hi everyone
>> I'm learning to program python with wxpython gui. I have a application i 
>> made with several modules and i want to implement a configfile that 
>> applies to all those modules. Is there an easy way to do this ?  Can 
>> anyone point me in the right direction ?
> Depending upon your tastes:
> ConfigFile => win.ini style config files.
> shlex      => unix shell script style parsing.

You can also use a python module as a shared config; just define 
whatever values you want in Python code and import the module where you 
need it.


More information about the Tutor mailing list