Import aliases

p p ploneconfvisitor at googlemail.com
Thu Mar 26 16:01:02 CET 2009


For a while a maintained a Python package  'foo' with a number of modules
(including a nested structure of module). Now the package moved into a
namespace package'a.b.foo'. What is the way to approach making old code work
with the new package in order
that imports like

 import foo.bar.xxx
 or
 from foo.bar import xxx

remain working for existing code.

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090326/20319011/attachment.html>


More information about the Python-list mailing list