AlbaClause schrieb: > Lawrence D'Oliveiro wrote: > > >>In message <[EMAIL PROTECTED]>, AlbaClause wrote: >> >> >>>Then, to execute the file from from the shell prompt, I had to create a >>>'bin' directory in my home folder, cuz I didn't want to litter >>>my /usr/local/bin folder with useless Python scripts. >> >>Executable files can be kept anywhere, you don't need a special directory >>for them. > > > Yes, I know, but if you want to just enter the filename at the shell prompt, > the file has to be somewhere that it can be found. Otherwise you get the > dreaded "command not found" error. Unless I'm doing something wrong? > > In the most cases, PATH is preconfigured to include "." (. is the current directory as .. is the parent one). You can use ./yourpythonscript in this case. Another possibility is using `python script.py` to let the python interpreter do the work directly. The most "advanced" way would be expanding PATH with /home/youraccount/python/learning (use PATH=$PATH:/path/here..).
Choose the one you're most comfortable with. :-) Sincerely, Stargaming -- -- http://mail.python.org/mailman/listinfo/python-list