Windows and python execution
rbt
rbt at athop1.ath.vt.edu
Mon Dec 26 10:52:15 EST 2005
Mark Carter wrote:
> rzed wrote:
>> Mark Carter <me at privacy.net> wrote in
>> news:43afdec0$0$15788$14726298 at news.sunsite.dk:
>>
>>> What I would like to do it type something like
>>>
>>>> myscript.py
>>>
>>> instead of
>>>
>>>> python myscript.py
>
>> As another poster points out, be sure that your Python is on your path.
>> And there is a PATHEXT environment variable,
>
> Aha. You'bve provided a significant clue.
>
> What you need to do is include the following line in autoexec.bat:
> set .py=c:\python24\python.exe
>
> This will achieve the desired result. I'm suprised more people don't use
> it.
I'm surprised the installer doesn't do it :)
More information about the Python-list
mailing list