[go: up one dir, main page]

Today I Learned

tags


2024/08/11

That virtualenvs may contain two files that alter the sys.path outside of the $PYTHONPATH variable:

  1. .venv/pyvenv.cfg (see https://docs.python.org/3/library/sys_path_init.html#virtual-environments)
  2. .venv/python3.*/site-packages/*.pth (see https://docs.python.org/3/library/sys_path_init.html#pth-files)