.py as executable extension on windows

Tim Peters tim.peters at gmail.com
Wed Sep 15 22:45:41 CEST 2004

[Achim Domma]
> is there a way to tell windows, that *.py files are executable, like
> .bat, .js, ...? If I have someTool.py somewhere in my path I would like
> to type only 'someTool param1 param2'. Is that possible?

Not on a command.com system (95/98/ME).  On a cmd.exe system
(NT/2K/XP), go to a DOS box and type

    ftype /?

Skip down to the part explaining PATHEXT.

More information about the Python-list mailing list