There was an error while loading. Please reload this page.
1 parent d755701 commit 8552ecaCopy full SHA for 8552eca
1 file changed
Doc/library/site.rst
@@ -241,12 +241,19 @@ Module contents
241
used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
242
243
244
-.. function:: getsitepackages()
+.. function:: getsitepackages(prefixes=None)
245
246
Return a list containing all global site-packages directories.
247
248
+ For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
249
+ is ``None``), this function will find its site-packages subdirectory
250
+ depending on the system environment, and will return a list of full paths.
251
+
252
.. versionadded:: 3.2
253
254
+ .. versionchanged:: 3.3
255
+ Add the optional *prefixes* argument.
256
257
258
.. function:: getuserbase()
259
0 commit comments