Skip to content
9 changes: 8 additions & 1 deletion Doc/library/site.rst
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,19 @@ Module contents
Also processes :file:`.start` files. See :ref:`site-start-files`.


.. 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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Add the optional *prefixes* argument.
Add the optional *prefixes* parameter.

Little too late.



.. function:: getuserbase()

Expand Down
Loading