[Pythonmac-SIG] How to provide additions to python path such that all executions of a given python binary will see them?

Jack Jansen Jack.Jansen at cwi.nl
Tue Jun 22 17:50:43 EDT 2004


On 18 Jun 2004, at 02:55, Kenneth McDonald wrote:

> Currently, I modify my python path through inclusion of a PYTHONPATH 
> variable
> in the .login file. However, I need to add a /local/python/packages 
> directory
> to the path in such a manner that all executions of the system python 
> binary
> see /local/python/packages. I was just wondering up the best (least 
> hacky)
> way of doing this might be.

You set them in ~/.MacOSX/environment.plist, environment variables set 
in that file are read at login time, so they are also available to GUI 
programs. The MacPython FAQ has the details.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Pythonmac-SIG mailing list