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

Benjamin Kaplan benjamin.kaplan at
Tue Jul 8 03:05:58 CEST 2008

On Mon, Jul 7, 2008 at 5:56 PM, korean_dave <davidreynon at> wrote:

> >From command Prompt, i type in a script,  "".
> 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?
> --

You need to set the file associations to use python.exe, instead of
PythonWin. In Vista, you can to this from Control Panel -> Programs ->
Default Programs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list