Windows versions of Python---pros and cons?

Bjorn Pettersen BPettersen at NAREX.com
Thu Jun 20 18:52:35 EDT 2002


> From: Chris Barker [mailto:Chris.Barker at noaa.gov] 
[snip]
> 
> On that note: does anyone know if there is a way to turn a 
> Python script into something that acts like an application on 
> Windows...without resorting to Py2exe and the like. What I 
> want is something just like:
> 
> chmod +x scriptname
> and a #! line at the top 
> 
> on Unix. I want it to work on the windows command line.

If you use the ActiveState version (not sure about the python.org
version) this should work out-of-the-box. Just type the name of the
script, you can even leave out the .py extension. Someone else will
probably tell you how it works, I just know it's got something to do
with registering the .py extension as an executable extension in the
registry...

-- bjorn





More information about the Python-list mailing list