How to set pythonpath in Mac OS X?

Jorl Shefner v451v at yahoo.com
Fri Oct 24 16:02:11 EDT 2003


In article <mailman.69.1066987239.702.python-list at python.org>,
 Eric Wichterich <eric.wichterich at gmx.de> wrote:

> Hello Pythonistas,
> 
> I am trying to get certain (self-written) libraries imported into my 
> scripts using statements like
> 
> "from library import function.py".
> 
> But they are not being found.
> 
> I think that the pythonpath-variable must be expanded to the location 
> to this libraries.
> 
> But, I can't find any usable information using Google on how to set up 
> the pythonpath properly.
> I don't even know where to look for the pythonpath-variable?
> 
> It would be great if anyone could help me out on this?
> 
> Thanks,
> Eric
> 
> 

I simply placed this in my start-up script and it works fine:

setenv PYTHONPATH /Users/Me/Documents/Python/MyModules

OS 10.2.8  

J.S.




More information about the Python-list mailing list