Organizing code - import question
Brian Blais
bblais at bryant.edu
Thu May 3 12:33:10 EDT 2007
Carlos Hanson wrote:
> It looks like you need __init__.py in MyPackage. Then you can import
> starting with MyPackage. For example, you might use one of the
> following:
>
> import MyPackage
> from MyPackage.Common import *
> etc
>
that means that MyPackage must be in the sys path too? It doesn't seem like a
contained-module sees the container in any way.
bb
--
-----------------
bblais at bryant.edu
http://web.bryant.edu/~bblais
More information about the Python-list
mailing list