[Tutor] Making a script part of the terminal

James Reynolds eire1130 at gmail.com
Fri May 20 19:57:57 CEST 2011


We just had a similar question yesterday.

Just make sure Python is on your PATH. CD to the directory where your file
is located and then you can just type "python myfile.py" where myfile is the
name of your file.

On Fri, May 20, 2011 at 1:43 PM, michael scott <jigenbakuda at yahoo.com>wrote:

> Okay, my title might be undescriptive, let me try to explain it better. I
> want to take a script I've written and make it usable by typing its name in
> the terminal. Perfect example is the python interpreter. You just type in
> the word python to the terminal and then the interpreter runs. I know other
> programs can do this as well (like mozilla or nautilus or rhythmbox).  So
> how do I make my scripts executable from the terminal?
>
> ----
> What is it about you... that intrigues me so?
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110520/cfdbc4b5/attachment.html>


More information about the Tutor mailing list