I'm using Poetry to manage dependencies - NOT as a packaging tool. Given the following layout
.
├── poetry.lock
├── pyproject.toml
├── src
│ ├── __init__.py
│ └── my_module.py
└── scripts
└── my_script.py
Inside my_script.py I'm using from src.my_module import MyClass but when I call poetry run python scripts/my_script.py I get:
ModuleNotFoundError: No module named 'src'
I want to add the root directory to the PYTHONPATH of this specific environment, but I want to avoid manually exporting it everytime.
Bottom line I'm looking for Poetry's equivalent for vitualenvwrappers add2virtualenv
Is this possible under Poetry?