Hi,
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
the code in two.py is
but when i run one.py i get an error:
Traceback (most recent call last):
File "C:\Python25\My Scripts\Test\1\ one.py", line 1, in <module>
import Test.two
ImportError: No module named Test.two
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
Code:
import test.two print two.v
Code:
v=0
but when i run one.py i get an error:
Traceback (most recent call last):
File "C:\Python25\My Scripts\Test\1\ one.py", line 1, in <module>
import Test.two
ImportError: No module named Test.two
Comment