I have a structure as
name_folder:
tobeused.py
name_folder:
__init__.py
models.py
radial.py
In module tobeused.py
I did
from name_folder import models
.
In module models.py
I did from radial import rad
(rad
is function in radial.py
)
When I run models.py
directly, it works. But when I run tobeused.py
an error shows :
ImportError: No module named 'radial'
How to work on this? Thanks