There was an error while loading. Please reload this page.
1 parent fdf830d commit 52afde4Copy full SHA for 52afde4
1 file changed
Doc/library/site.rst
@@ -233,12 +233,19 @@ Module contents
233
used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
234
235
236
-.. function:: getsitepackages()
+.. function:: getsitepackages(prefixes=None)
237
238
Return a list containing all global site-packages directories.
239
240
+ For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
241
+ is ``None``), this function will find its site-packages subdirectory
242
+ depending on the system environment, and will return a list of full paths.
243
+
244
.. versionadded:: 3.2
245
246
+ .. versionchanged:: 3.3
247
+ Added the optional *prefixes* parameter.
248
249
250
.. function:: getuserbase()
251
0 commit comments