How do I launch 'somewhere/Sweety.py' without 'somewhere/'?

Joshua Tompkins josue at ufl.edu
Sat Apr 7 14:20:45 EDT 2001


One easy way is to put a .pth file in your base python directory.
Call it 'sweety.pth' or whatever.  In that file just put the path to
sweety.py.  Now restart the interpreter and you should be able
to call your python file without the long path.

Hope that helps...
Josh

On Sat, 07 Apr 2001 08:45:14 GMT, m.bless at gmx.de (Martin Bless) wrote:
>Working in dos boxes of win - but probably independent of this here's
>my question:
>
>ok,   PYTHON   starts Python
>ok,   PYTHON   c:\really\long\path\somewhere\Sweety.py
>executes  my beloved script Sweety.py.
>
>How can I start   Sweety.py   without having to specify that awful
>long path?
>
>Martin




More information about the Python-list mailing list