tmohr at s.netic.de
Sun Dec 14 21:16:34 CET 2008
in a package i'd like to have a structure like this:
Files end with ".py", others are directories:
__init__.py # sets __all__ = ['smod1']
smod1.py # contains AClass()
__init__.py # sets __all__ = ['abc', 'def']
So i can now do:
But functions/classes in smod1.py are not found:
a = mod.smod1.AClass()
I know this is somehow ambiguous, but i wonder how else i can make
"mod" have subpackages and modules.
I wonder how i can make AClass() known in that package.
Thanks for any hints,
More information about the Python-list