Win32 : Making script.py executable in DOS box

Robin Dunn robin at alldunn.com
Thu Jul 13 23:10:50 EDT 2000


> > Under Windows NT or Win2k, you can use the PATHEXT environment
> > variable. Simply add ".py" to the semi-colon sep'd list of
> > extensions, and off you go!
>
> Great, thats a help for NT, but I also want to do this on Win98 :-).
>
> > No solution I am aware of for 95, although there are some tricks
> > you can pull (Im sure someone else will fill these in for you)!
>
> Anyone???
>

If you use the 4DOS command shell instead of command.com then you can set an
environment variable like this:

    set .py=c:\path\to\python.exe

--
Robin Dunn
Software Craftsman
robin at AllDunn.com
http://wxpython.org     Java give you jitters?
http://wxpros.com        Relax with wxPython!






More information about the Python-list mailing list