Python stdlib module — site. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.abs_paths()Neutralabs_paths()
Set all module __file__ and __cached__ attributes to an absolute path
.addpackage()Neutraladdpackage(sitedir, name, known_paths)
Process a .pth file within the site-packages directory:
.addsitedir()Neutraladdsitedir(sitedir, known_paths)
Add 'sitedir' argument to sys.path if missing and handle .pth files in
.addsitepackages()Neutraladdsitepackages(known_paths, prefixes)
Add site-packages to sys.path
.addusersitepackages()Neutraladdusersitepackages(known_paths)
Add a per user site-package to sys.path
.check_enableusersite()Neutralcheck_enableusersite()
Check if user site directory is safe for inclusion
.enablerlcompleter()Neutralenablerlcompleter()
Enable default readline configuration on interactive prompts, by
.execsitecustomize()Neutralexecsitecustomize()
Run custom site specific code, if available.
.execusercustomize()Neutralexecusercustomize()
Run custom user specific code, if available.
.getsitepackages()Neutralgetsitepackages(prefixes)
Returns a list containing all global site-packages directories.
| FQN | Field | |
|---|---|---|
| site | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import site