usf-team team mailing list archive
-
usf-team team
-
Mailing list archive
-
Message #00014
Re: setup.py + config.py update
I thought I was done, but after hours of debugging and staring at diffs, I can't seem to figure out why I can't get this working. It seems that anything that has to do with xml was broken by my changes, which is why I haven't pushed anything recently.
As far as "import config.general as config", that won't work because general is a dynamically generated attribute, as opposed to a module or separate class. What you could do is:
c = Config()
c.general['OPTION']
c.audio['OPTION']
...
The reason for the other way was to try and mimick the old syntax as much as possible. Heck, in most cases, multiple sections of the config are not needed, so you could just do:
general = Config().general
general['OPTION']
...