[Tutor] locating python scripts

Brendan Rankin brendan.rankin at gmail.com
Sun Jan 6 22:25:38 CET 2008


max baseman <dos.fool <at> gmail.com> writes:

> 
> hey i just have a small question, doesn't have much to do with  
> programing but it has to do with python.
> anyways Im running a apple computer  version 10.4 and have been  
> keeping my scripts in the user folder i was wondering where and how i  
> can change the files that python looks in when looking for programs i  
> would like to make it so that i can have separate folders in the user  
> folder for different projects
> any help would be great
> thanks 
> 
> _______________________________________________
> Tutor maillist  -  Tutor <at> python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 

I've always just added paths to the PYTHONPATH environment variable.  It's value
is now:

/home/brendan/scripts/Python:/home/brendan/lib/python:.

This is on Linux, but I don't see why it shouldn't work identically on OSX.

Cheers,

- Brendan




More information about the Tutor mailing list