Alan Gauld wrote:
> "Daniel McQuay" <[EMAIL PROTECTED]> wrote
>
>
>> from a DOS prompt. i am used to running python from a linux box
>> where you
>> can just type "python" or "python24" from a shell prompt and the
>> python
>> shell executes from any directory.
>>
>
>
>> testing code. now i am using a windows xp media center edition
>> laptop with
>> python 2.5 installed and when i go to run and then type "cmd" and
>> then type
>> "python" from the directory where the run "cmd" command drops me it
>> says
>> 'python' is not a recognized as an internal or external command.
>>
>
> You need to set up your PATH environment variable to include the
> python directory. You do this on XP(not so sure about Media Centre!)
> via the MyComputer->Properties->Advanced->Environment Variables route
> Once there you need to find the PATH variable and edit it to add the
> folder where Python lives (look at the properties of the shortcut to
> Python that you normally use to stat it).
>
Also, if you just need a temporary fix (say you're using Python on
someone else's system and you don't want to permanently change their PATH)
you can type
path = %path%;c:\python25
to add it to your path just for that DOS session.
HTH,
-Luke
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor