[Python-Dev] Relative Package Imports
Barry A. Warsaw
firstname.lastname@example.org (Barry A. Warsaw)
Wed, 15 Sep 1999 14:46:44 -0400 (EDT)
JF> Zope products are python packages installed as sub-packages of
JF> the Zope 'Products' packages. Products are generally
JF> self-contained. If they need anything that's not part of
JF> standard Python or standard Zope, they need to include it or
JF> install what they need in a sub-package of another Zope
JF> package, 'Shared'.
Jim, from your description, it sounds like Zope should be putting both
the `Shared' and possibly `Products' directories on sys.path. Maybe
it does and I'm still missing your point.
However if they are not, then wouldn't this solve your problem? A
user would drop the kjParsing directory into Shared, and then all the
import kjParsing.kjParser statements would Just Work.