koopa-python
Python virtual environment lessons, why moving a project directory breaks .venv/bin/activate's hardcoded absolute path, and why direnv's PATH_add is relocation-proof where source activate is not. Use when a console-script entry point becomes "command not found" after moving a project directory, when writing or debugging a .envrc that activates a Python venv, or when deciding between PATH_add and source activate under direnv's strict_env.
Pinned to revision 4b8152c820be, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.