Re: save configuration information in a global class

2005-03-27 Thread Steven Bethard
Su Wei <[EMAIL PROTECTED]> wrote: > if i have a xml file like this: > > > > > > i want to save this information,and used by other moduls later. > > how should i do it? ths First you need an xml library. There's one built into Python, but ElementTree is a simpler one: http://effbot.o

Re: save configuration information in a global class

2005-03-27 Thread Steven Bethard
Su Wei <[EMAIL PROTECTED]> wrote: > if i want to make a global class to save configuration information of > app that is read from a xml file,what can i do? Just put it in a module. Say, 'progconfig.py'. Your configuration code can then look like: import progconfig # parse configuration informat