Skip to content
Commit 46409b5c authored by Frederik Rietdijk's avatar Frederik Rietdijk Committed by Frederik Rietdijk
Browse files

Python: add sitecustomize.py, listen to NIX_PYTHONPATH

This commit adds a Nix-specific module that recursively adds paths that
are on `NIX_PYTHONPATH` to `sys.path`. In order to process possible
`.pth` files `site.addsitedir` is used.

The paths listed in `PYTHONPATH` are added to `sys.path` afterwards, but
they will be added before the entries we add here and thus take
precedence.

The reason for adding support for this environment variable is that we
can set it in a wrapper without breaking support for `PYTHONPATH`.
parent 02afb228
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment