Do you want to run it from the command line or the desktop?
If you set the file association for .py
files (this is usually done during the install) you should be able to just double-click on the .py
file on the desktop to get it to run.
I don't know of a way to avoid typing python
with the command line (and this if it's on the PATH already, otherwise one would have to specify the whole path to the python executable).
It would be nice if we could do something similar like under Linux/Unix with #/usr/bin/env python
directive in the script, but I don't think this exists for Windows unfortunately.
You didn't specify what version of Windows you are running, but in case you are interested in assigning/changing file associations, here are Microsoft's instructions on doing that with XP. Very similar with other versions of Windows .. googling will bring up a bunch of hits for how to change file associations.