Windows and python execution

rzed jello at comic.com
Mon Dec 26 08:49:36 EST 2005


Mark Carter <me at privacy.net> wrote in
news:43afdec0$0$15788$14726298 at news.sunsite.dk: 

> What I would like to do it type something like
> > myscript.py
> instead of
> > python myscript.py
> on a Windows console. I know its possible because Ruby scripts
> manage to do this - I just don't know the registry settings that
> need to be tweaked to enable it. Any ideas (I'd prefer to know
> the registry settings rather than a graphical way to accomplish
> the goal)? 

As another poster points out, be sure that your Python is on your 
path. 

And there is a PATHEXT environment variable, which contains 
extensions that signal that the program is executable. Add .PY and 
.PYW to this list and you will be good to go.

-- 
rzed



More information about the Python-list mailing list