diff --git a/Doc/library/site.rst b/Doc/library/site.rst index f8b51bc86eb960..d49dee2876d87d 100644 --- a/Doc/library/site.rst +++ b/Doc/library/site.rst @@ -233,12 +233,19 @@ Module contents used in :mod:`sitecustomize` or :mod:`usercustomize` (see above). -.. function:: getsitepackages() +.. function:: getsitepackages(prefixes=None) Return a list containing all global site-packages directories. + For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes* + is ``None``), this function will find its site-packages subdirectory + depending on the system environment, and will return a list of full paths. + .. versionadded:: 3.2 + .. versionchanged:: 3.3 + Added the optional *prefixes* parameter. + .. function:: getuserbase()