Customize module search path (PYTHONPATH) via pipenv
问题 I have a Python project consisting of a Jupyter notebook, several scripts in a bin directory and modules in a src directory, with dependencies in a Pipfile : myproject ├── myproject.ipynb ├── Pipfile ├── Pipfile.lock ├── bin │ ├── bar.py │ └── foo.py └── src ├── baz.py └── qux.py The scripts foo.py and bar.py use the standard shebang #!/usr/bin/env python and can be run with pipenv shell : mymachine:myproject myname$ pipenv shell (myproject-U308romt) bash-3.2$ bin/foo.py foo However, I can't