Win32 : Making script.py executable in DOS box

Mark Hammond MarkH at ActiveState.com
Sun Jul 2 10:45:10 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!

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!

Mark.
--
markh at activestate.com - but if you think I speak for them, you dont know
Dick!

"Neo Brave" <neo_brave at my-deja.com> wrote in message
news:8jmjfe$64o$1 at nnrp1.deja.com...
> Hi all,
>
> I'm currently running Python scripts at the command line
> using C:\python\python script.py. Is there a way of making
> the MS-DOS box recognise the Python script as an executable
> file so I can just use the name "script.py"?
>
> Thanks in advance,
> Neo
> --
> Neo Brave
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.





More information about the Python-list mailing list