I have defined a logger in my project using this structure
/project
/source
__init__.py
logger.py
test
test_do.py
do.py
do.py
and test_do.py
are supposed to use the same logger.py
. While in do.py
from source import logger
works, I get in test_do.py
from ..source import logger
results in
[...]
ImportError: attempted relative import with no known parent package
What am I doing wrong?