execute script everywhere

myang myang at clarku.edu
Sat Mar 13 21:22:11 EST 2004


After we compile a C program, we can put the executable file under a
directory (like /bin) so that we can run it everywhere, and don't have to
type the full path.
Can we do the same thing to a python script?
For example, I have a script.py under "/home/john/". Can I just type "python
script.py" to run it under another directory "/home/tom/"?
Thanks!

Yang





More information about the Python-list mailing list