On Fri, Sep 25, 2009 at 11:32 AM, David Eric <cii...@gmail.com> wrote:
> ok this is really weird . . . > i tried running the helloworld again, and it doesnt work :/ > > DTm:~ davidteboul$ echo $PATH > PATH$/Library/Frameworks/ > Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin/Users/davidteboul/bin/pythonStuff > DTm:~ davidteboul$ helloworld > -bash: helloworld: command not found > i checked and helloworld is definitely in ~/bin/pythonStuff > what happened? > > btw...when i switch to ~/bin/pythonStuff and type helloworld..that doesnt > run it either? > i can run it when i type python > it worked prior, im confused > Do you know if it has executable permissions? The easiest way to set them is chmod +x helloworld.py (or whatever the filename is) You also need the "shebang" line at the top: #!/usr/bin/env python is one of the variations. HTH, Wayne (included the list in reply... Hit reply-all when replying to list) -- To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor