[Tutor] Running Existing Python

Corey Richardson kb1pkl at aim.com
Sat Feb 26 22:18:00 CET 2011


On 02/26/2011 04:10 PM, Justin Bonnell wrote:

> --This is the location of the file:
> 
> 	/jwbonnell/bin/Python 2.7/Extras/Demo/tkinter/guido/hello.py
> 
> but it still says it cannot find the directory when I try to run it or cd to it. Is there any way that I can tell which directory the shell is currently working from?

At the terminal, the command "pwd" , print working directory, should do
the trick.

If you cannot cd to the directory, that's generally a pretty big hint
that the directory doesn't exist ;-)

But yet you can see it in your file browser? That's most curious.

-- 
Corey Richardson


More information about the Tutor mailing list