Re: Windows and python execution
- From: Mark Carter <me@xxxxxxxxxxx>
- Date: Mon, 26 Dec 2005 14:53:28 +0000
rzed wrote:
Mark Carter <me@xxxxxxxxxxx> wrote in
news:43afdec0$0$15788$14726298@xxxxxxxxxxxxxxx:
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. .
- Follow-Ups:
- Re: Windows and python execution
- From: Tim Roberts
- Re: Windows and python execution
- From: Bengt Richter
- Re: Windows and python execution
- From: rbt
- Re: Windows and python execution
- From: BartlebyScrivener
- Re: Windows and python execution
- References:
- Windows and python execution
- From: Mark Carter
- Re: Windows and python execution
- From: rzed
- Windows and python execution
- Prev by Date: Re: Beautiful Python
- Next by Date: Re: build curiosities of svn head (on WinXP)
- Previous by thread: Re: Windows and python execution
- Next by thread: Re: Windows and python execution
- Index(es):