I have this file structure:
.
test/db_test.py
models/user.py
I want to import user.py
in db_test.py
, for example i try it:
from ..models.user import User
but have this error:
SystemError: Parent module '' not loaded, cannot perform relative import
How can do this work?
- all path have
__init__.py
file - i don't want to use appending in sys.path
thank for your answers