[Tutor] Running Existing Python
Justin Bonnell
jwbonnell5 at gmail.com
Sat Feb 26 22:32:45 CET 2011
On Feb 26, 2011, at 3:18 PM, Corey Richardson wrote:
> 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.
--My current working directory is not what I have been trying to cd to, so I'm assuming that I am using the cd command wrong.
I have tried:
$ cd /jwbonnell/bin/Python\2.7/Extras/Demo/tkinter/guido
$ cd /jwbonnell/bin/Python\2.7/Extras/Demo/tkinter/guido/hello.py
$ cd /jwbonnell/bin/Python 2.7/Extras/Demo/tkinter/guido/hello.py
>
> --
> Corey Richardson
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list