site
site — Site-specific configuration hook
Source code: Lib/site.py
This module is automatically imported during initialization. The automatic import can be suppressed using the interpreter’s -S
option.
Importing this module will append site-specific paths to the module search path and add a few builtins.
It starts by constructing up to four directories from a head and a tail part. For the head part, it uses sys.prefix
and sys.exec_prefix
; empty heads are skipped. For the tail part, it uses the empty string and then lib/sit