I've create a file hierarchy:
test/
__init__.py
one/
__init__.py
one.py
two/
__init__.py
two.py
all the __init__.py files are empty.
the code in one.py is
Expand|Select|Wrap|Line Numbers
- import test.two
- print two.v
Expand|Select|Wrap|Line Numbers
- v=0
but when i run one.py i get an error:
Traceback (most recent call last):
File "C:\Python25\MyScripts\Test\1\one.py", line 1, in <module>
import Test.two
ImportError: No module named Test.two