"michael scott" wrote
say, how do I install a program to my computer, so that
I can use it by its self without running it with python.
Just to be clear, Python programs are interpreted by
the Python interpreter. So while you can set things up
such that you don't need to explicitly cakll
n Linux, it would be "myprogram.sh" with the executable bit set.
- Original Message -
From: michael scott
To: tutor@python.org
Sent: Friday, May 20, 2011 11:10 AM
Subject: Re: [Tutor] Making a script part of the terminal
Thank you for the reply, but thats not
inology to ask the question correctly, so forgive me.
>
>
>
> What is it about you... that intrigues me so?
>
>
> --
> *From:* James Reynolds
> *To:* michael scott
> *Cc:* tutor@python.org
> *Sent:* Fri, May 20, 2011 1:57:57 PM
> *Subje
gt;
> From: James Reynolds
> To: michael scott
> Cc: tutor@python.org
> Sent: Fri, May 20, 2011 1:57:57 PM
> Subject: Re: [Tutor] Making a script part of the terminal
>
> We just had a similar question yesterday.
>
> Just make sure Python is on your PATH. CD to the d
To expand further, some distributions of Linux set a 'bin' path under
your home folder as part of your native PATH, even if it doesn't exist.
So if your Linux username is, say, "mscott", see if "echo $PATH" already
includes something like "/home/mscott/bin" in the path already. If so,
simply c
Thank you gentlemen so much, I believe I have all that I need to do what I wish.
What is it about you... that intrigues me so?___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/list
u... that intrigues me so?
From: James Reynolds
To: michael scott
Cc: tutor@python.org
Sent: Fri, May 20, 2011 1:57:57 PM
Subject: Re: [Tutor] Making a script part of the terminal
We just had a similar question yesterday.
Just make sure Python is on your PATH. CD to the dir
On Fri, May 20, 2011 at 6:43 PM, michael scott 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 pyt
Hello Michael,
first you have to give your script an executable bit. Just type chmod +x
your_script.py
Furhtermore, your script has to be in a directory that is also part of your
search path. Type in echo $PATH to see how your path is set. You can either link
or copy your script to an approprate
hey ! i can answer that !
birst in the fist line of you script put something like this
#!/usr/local/bin/python
change the path for where you have python ( try using 'whereis python' )
sencond make the file executable add the +x attribute ( using chmod )
third put the script in some place and
On 20-05-11 19:43, michael scott 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
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 wrote:
> Okay, my title might be und
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 ot
13 matches
Mail list logo