There was an error while loading. Please reload this page.
1 parent 1e34468 commit 1718808Copy full SHA for 1718808
1 file changed
Doc/library/site.rst
@@ -211,12 +211,19 @@ Module contents
211
used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
212
213
214
-.. function:: getsitepackages()
+.. function:: getsitepackages(prefixes=None)
215
216
- Return a list containing all global site-packages directories.
+ Return a list containing all global :file:`site-packages` directories.
217
+
218
+ For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
219
+ is None), this function will find its :file:`site-packages` subdirectory
220
+ depending on the system environment, and will return a list of full paths.
221
222
.. versionadded:: 3.2
223
224
+ .. versionchanged:: 3.3
225
+ Add the optional *prefixes* argument.
226
227
228
.. function:: getuserbase()
229
0 commit comments