Tuesday, March 1, 2011

a rookie problem about 'Modules'

hi,i'm a freshman for python. i got a problem about "Modules"
this is my dir
A/
a.py
__init__.py
B/
__init__.py
b.py
C/
__init__.py
c.py

and i wrote this as follows in c.py

from A.B import b
~~~~blablabla

but the compiler warned like this:

Traceback (most recent call last):
File "H:\workspace\A\B\b.py", line 1, in <module>
from A.C import c
ImportError: No module named A.C


so what's the matter ? should i do sth in sys.path or
someelse?

i hope sb can help me with it thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment