cross platform application configuration files
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Fri Feb 28 13:31:53 EST 2003
On Fri, 28 Feb 2003 13:37:24 -0000, rumours say that Lee Harr
<missive at frontiernet.net> might have written:
>I really have no desire to learn the intricacies of using
>the registry, but if there were a module already built where
>I might say:
>
>
>import xpconf
>xpconf.store('pygsear', 'WINWIDTH', 800)
>xpconf.store('pygsear', 'WINHEIGHT', 600)
>
>WINWIDTH = xpconf.get('pygsear', 'WINWIDTH')
>WINHEIGHT = xpconf.get('pygsear', 'WINHEIGHT')
>
>
>and it would just "do the right thing" for the platform,
>I might be convinced to use that...
>
>Does such a beastie exist?
Check this:
http://www.python.org/doc/2.3a2/lib/module-ConfigParser.html
(it's not only 2.3a2, I just happened to be browsing the latest
documentation).
--
TZOTZIOY, I speak England very best,
bofh at sil-tec.gr
(I'm a postmaster luring spammers; please spam me!
...and my users won't ever see your messages again...)
More information about the Python-list
mailing list