noob needs help

Sambo sambo at voidstar.com
Wed Dec 3 01:01:34 EST 2008


Peter Pearson wrote:

 
> When you type "python helloworld.py", python looks for helloworld.py
> in the current "working" directory, which is probably your personal
> default directory ("~").  For better results, either save helloworld.py
> to this directory, or copy it to this directory
> ("cp Documents/helloworld.py ."), or tell python to look for it
> in the Documents directory ("python Documents/helloworld.py").
> 
> (I'm guessing that your directory structure looks something
> like /home/collin/Documents.  If I've guessed wrong, some
> adjustment may be needed.  Also, if you're feeling ambitious,
> you might want to consider putting this project in a directory
> of its own; that would involve the mkdir and cd commands.)
> 

In slackware one needs "./" before the filename if you executing 
files in current dir.



More information about the Python-list mailing list