Moving key library import statements to inside the class would make it an optional import. No XMLConfig, no amara. Regarding elementTree, see
SESPRINGPYTHONPY-98, where we are replacing amara with elementTree.
Here I see two issues:
- the amara dep is not resolved
- a minor one: if the same thing could be achieved via elementtree, it
would be far better, since the latter module is part of the standard
python dist since python 2.5. This would let springpython to run with
one dep less.
>>> from springpython.config import PythonConfig
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
16, in <module>
ImportError: No module named amara
This is another drawback of putting too many things into a single
_init_.py - why should I need amara (an xml toolkit) if I don't need
XMLConfig ? It is an unnecessary dep.