
[M.-A. Lemburg]
The current lookup does the following if you want to import a module E from module A.B.C.D:
- check A.B.C.E
- check E
- fail
Now instead of failing we could add a lookup method that walks up the package structure:
- check A.B.E
- check A.E
[5. check E -- already done] 6. fail
so that the complete scheme looks like this:
- check A.B.C.E
- check E
- check A.B.E
- check A.E
[5. check E -- already done] 6. fail
That way I could leave intra-mx-package imports untouched and still have the convenience of achieving the goal of making my mx subpackages work in the mx context *plus* in the top-level context thus allowing a backward compatible and flexible setup for mx* users.
Comment 1: You're just giving yourself headaches by allowing your users to install mx in anything other than the prescribed manner.
Comment 2: I generally like this scheme, but think (for consistency and confusion-reduction) that it should go straight up the tree, instead of checking the root second.
- Gordon