[issue6693] New functions in site.py to get user/global site packages paths

Tarek Ziadé report at bugs.python.org
Thu Aug 13 10:31:58 CEST 2009


New submission from Tarek Ziadé <ziade.tarek at gmail.com>:

As discussed in Distutils-SIG.

Here's a patch for site.py that adds:

- getsitepackages : Returns a list containing all global site-packages
directories (and possibly site-python).

- getusersitepackages: Returns the user-specific site-packages directory
path.

- getuserbase: Returns the `user base` directory path.

----------
assignee: tarek
components: Library (Lib)
files: site.patch
keywords: patch
messages: 91516
nosy: tarek
priority: normal
severity: normal
status: open
title: New functions in site.py to get user/global site packages paths
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file14707/site.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6693>
_______________________________________


More information about the Python-bugs-list mailing list