[Tutor] Running a script from another folder

ycbh7f302 at sneakemail.com ycbh7f302 at sneakemail.com
Wed Nov 12 17:27:17 CET 2008


Suppose I have a python script in /usr1/myID/bin and I want to run it from another folder. If I enter

python ~myID/bin/myscript

that works. Is there a way to get by with 

python myscript

or even

myscript.py

I've tried specifying the PYTHONPATH 
environmental variable but it seems to be used only for importing modules.







More information about the Tutor mailing list