Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: David Thomas Newsgroups: comp.lang.python Subject: Re: Executing Python Scripts on Mac using Python Launcher Date: Tue, 26 Jun 2012 11:09:54 -0700 (PDT) Organization: http://groups.google.com Lines: 187 Message-ID: <5d9bb673-0e93-4fcc-a21b-e56f2aa2bb0f@googlegroups.com> References: <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> NNTP-Posting-Host: 81.96.195.171 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1340734530 13219 127.0.0.1 (26 Jun 2012 18:15:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 26 Jun 2012 18:15:30 +0000 (UTC) Cc: David Thomas , python-list@python.org, d@davea.name In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.96.195.171; posting-account=1lcE3woAAAB8YdS7bHcWjAZeCDFa_kp3 User-Agent: G2/1.0 X-Received-Bytes: 8525 Xref: csiph.com comp.lang.python:24475 On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA Hi On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA