[Tutor] Starting python from a DOS prompt from any

Tony Cappellini cappy2112 at gmail.com
Mon Jan 1 18:09:56 CET 2007


Message: 3
Date: Sun, 31 Dec 2006 00:10:39 -0500
From: "Daniel McQuay" <simplebob at gmail.com>
Subject: [Tutor]  Starting python from a DOS prompt from any
       directory?
>>sorry for such a newbie question but i would like to figure this out
because
>>there are some situations where i need that to work from any directory.



Alan Gauld wrote
>>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

I recommend adding it to the System Path environment variable, instead of
the Path Environment variable for your current  user login.
You'll have to reboot before it takes affect though.

There's also a simple registry change you can make to open the Python
interpreter in a specific directory, by right clicking on that directory
with Windows Explorer, without having to type 'cd' down a complicated path.
This saves time if you have long directory names.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070101/b6e61e3b/attachment.htm 


More information about the Tutor mailing list