I have two projects. In first one, I can import my module importme.py like:
import importme
And now I can use my function hello() in importme module without any problem. In second one, I recieve:
ImportError: No module named 'importme'
But I can import it via:
from . import importme
Why I cant import my module the same way in both projects? Should I configure some paths ?
EDIT1:
Directory structure of first project:
testproject/
├── importme.py
└── start.py
Directory structure of second project:
spiders/
├── spider.py
├── download_page.py
├── importme.py
└── __init__.py
file init.py is empty.