How to make python scripts .py executable, not bring up editor

Iain King iainking at gmail.com
Tue Jul 8 15:54:33 CEST 2008


On Jul 7, 10:56 pm, korean_dave <davidrey... at gmail.com> wrote:
> From command Prompt, i type in a script,  "tryme.py".
>
> This, instead, brings up PythonWin editor and Interactive Window.
>
> Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5)
>
> How do I make it so that the script runs?

find a .py file in windows explorer.  Right click it->Open With-
>Choose Program...
Now find your python.exe file (should be in c:\python24), select it,
and tick the box that says "Always use the selected program"

Iain



More information about the Python-list mailing list