A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/108916.html below:

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

How do I launch 'somewhere/Sweety.py' without 'somewhere/'? 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4