is this a good way to do imports ?
Terrence Brannon
metaperl at gmail.com
Wed Nov 5 14:49:36 EST 2008
On Nov 5, 2:14 pm, Stef Mientki <stef.mien... at gmail.com> wrote:
> Now I want to be able to use functions of file2 in file1,
> and vice-versa.
It sounds like __all__ in __init__.py would work:
http://www.python.org/doc/2.5.2/tut/node8.html#SECTION008400000000000000000
If not, then pkgutil might of use?
http://docs.python.org/library/pkgutil.html
More information about the Python-list
mailing list