modifiable config files in compiled code?

Ksenia Marasanova ksenia.marasanova at gmail.com
Fri Mar 11 01:22:02 CET 2005


You can also do:
 
settings = {}
execfile('/path/to/file/myconfig.conf', settings)

myconfig.conf is a Python file. After this all variables from
myconfig.conf are stored in settings dictionary.


-- 
Ksenia



More information about the Python-list mailing list