mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
Python puts the directory of the script at the front of sys.path. The script is a file at the root of the store, so sys.path[0] is /nix/store. The first import then lists all of /nix/store. In some sandboxes, that listing takes many minutes. The -P flag tells Python not to add the script directory to sys.path. Assisted-by: Claude Code (Claude Opus 5.5)