On Oct 7, 2:16 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Would it hep to observe that the atest and btest submodules attemot to > import each other? > > There is no reason I can see for apack and bpack to be subpackages. Why > not just rename atest.py as apack.py at the same level as the Test > package's __init__.py, and in the same way make btest.py bpack.py. > > Then the __init__.py can do: > > from apack import printA > from bpack import printB > > and your main program can do > > import Test > Test.printA(...)
This is away of doing it, but not a very "Package" way. The situation is I want to make a package split up in sub dir's. And each sub dir need to call the other. And I cant see why it will not work, the way i do it. And the atest and btest, shouldn't they be able to import each other?? -- http://mail.python.org/mailman/listinfo/python-list