package import
Diez B. Roggisch
deets at nospam.web.de
Wed Feb 6 04:57:19 EST 2008
Sean Allen wrote:
> 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.
http://docs.python.org/tut/node8.html#SECTION008400000000000000000
Diez
More information about the Python-list
mailing list