On Mon, 26 Dec 2005 14:53:28 +0000, Mark Carter <[EMAIL PROTECTED]> wrote:

>rzed wrote:
>> Mark Carter <[EMAIL PROTECTED]> wrote in
>> news:[EMAIL PROTECTED]: 
>> 
>> 
>>>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 wasn't aware of that syntax for set. What OS/platform/shell is that from?
How did you go from the PATHEXT "clue" to the set command you specify and decide
not to set pathext, e.g., by something like
    set PATHEXT=%PATHEXT%;.py
Does your set do the pathext and assoc and ftype all in one swell foop?

Regards,
Bengt Richter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to