how to find site-packages path
vincent wehren
vincent at visualtrans.de
Mon Jan 17 12:38:59 EST 2005
Philippe C. Martin wrote:
> Hi,
>
> I am using my own install script for my software and am looking for a
> flawless way to figure out where python, and more specifically
> site-packages is installed.
You can take a look at how this is done in Lib/site.py.
Look for the bit of code that starts with
prefixes = [sys.prefix]
sitedir = None # make sure sitedir is initialized because of later 'del'
...
etc.
--
Vincent Wehren
>
> Any clue ?
>
> Regards,
>
> Philippe
>
>
>
More information about the Python-list
mailing list