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<div>'a.b.foo'. What is the way to approach making old code work with the new package in order</div>
<div>that imports like</div><div><br></div><div> import foo.bar.xxx</div><div> or </div><div> from foo.bar import xxx</div><div><br></div><div>remain working for existing code.</div><div><br></div><div>Andy</div>