package import

Sean Allen sean at ardishealth.com
Tue Feb 5 22:44:49 EST 2008


ok, what am i doing wrong?

in current working directory i have:

t.py
sub/t1.py

t.py is:

import sub.t1

i get:

ImportError: No module named sub.t1

t.py is

import sub

i get:

ImportError: No module named sub.t1

--

i am obviously missing something really basic here.
have tried on multiple machines, linux and mac os x.

thanks in advance.





More information about the Python-list mailing list