There was an error while loading. Please reload this page.
1 parent 5dfa606 commit bc31217Copy full SHA for bc31217
1 file changed
Doc/library/site.rst
@@ -449,12 +449,19 @@ Module contents
449
Also processes :file:`.start` files. See :ref:`site-start-files`.
450
451
452
-.. function:: getsitepackages()
+.. function:: getsitepackages(prefixes=None)
453
454
Return a list containing all global site-packages directories.
455
456
+ For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
457
+ is ``None``), this function will find its site-packages subdirectory
458
+ depending on the system environment, and will return a list of full paths.
459
+
460
.. versionadded:: 3.2
461
462
+ .. versionchanged:: 3.3
463
+ Add the optional *prefixes* argument.
464
465
466
.. function:: getuserbase()
467
0 commit comments