I have the following directory structure:
├── /scripts
| ├── /data
| | └── files.xls
| └── module.py
├── /interface
| └── app.py
And I need to import a function from module.py
into my app.py
, but using
from ..scripts.module.py import some_function
is not working. I'm running python from the root directory and always get this error: ImportError: attempted relative import with no known parent package
.
How can I make this import work?