[Distutils] getting the local site_packages
andrea.crotti.0 at gmail.com
Thu Feb 2 11:20:42 CET 2012
On 02/01/2012 11:16 PM, Hanno Schlichting wrote:
> On Wed, Feb 1, 2012 at 4:08 PM, Andrea Crotti<andrea.crotti.0 at gmail.com> wrote:
>> With something like this
>> site_packages = pkg_resources.get_python_lib()
>> I get the python global path of the site-packages directory, is there a way
>> to get also
>> the local one, which for example on Linux might be something like
> What does import site; site.getusersitepackages() return - as per
Sigh, the paleolitic python 2.5 didn't have that function..
but I guess it should be defined somewhere anyway, where else could it be?
More information about the Distutils-SIG