diff --git a/Doc/library/site.rst b/Doc/library/site.rst index 4686c9fc92ced2..7e8c16f284f5c2 100644 --- a/Doc/library/site.rst +++ b/Doc/library/site.rst @@ -241,12 +241,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 + Add the optional *prefixes* argument. + .. function:: getuserbase()