Where does my output go?
Gerhard Häring
g.haering at ___skynamics.com.invalid
Wed Sep 5 12:13:32 EDT 2001
Maan M. Hamze wrote:
> "Michael Abbott" <michael at rcp.co.uk> wrote in message
> news:Xns91139DA18A194michaelrcpcouk at 194.238.50.13...
>
>>So, I write a small bit of Python (one line):
>>
>>write.py
>>--------
>> print 'hello'
>>--------
>>
>>I then run it from the command line:
>>
>>
>> C:\TEMP>ver
>>
>> Windows NT Version 4.0
>>
>> C:\TEMP>write
>> Hello
>>
>>
> I do not understand this step here. How are you running write as an
> executable?
C:\temp\e>echo %PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw;.pyc;.pys
^^^^
A nifty trick done by the Windows installer. You can run Python scripts
like if they were executables :-)
Gerhard
--
Gerhard Häring
skynamics AG
g.haering at skynamics.com
http://www.skynamics.com
More information about the Python-list
mailing list