Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24473
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'messages.': 0.05; 'subject:Python': 0.05; 'cc:addr:googlegroups.com': 0.09; 'happens.': 0.09; 'skip:/ 10': 0.09; 'python': 0.10; 'cc:addr:python-list': 0.10; 'quoted': 0.16; 'subject:using': 0.16; '(the': 0.17; 'wrote:': 0.17; 'typing': 0.18; '(or': 0.19; 'earlier': 0.22; 'header:In-Reply-To:1': 0.23; 'error.': 0.24; "i've": 0.24; 'installed': 0.25; 'header:User- Agent:1': 0.26; 'tried': 0.26; 'cc:2**1': 0.26; 'normally': 0.27; 'window': 0.27; 'script': 0.28; "doesn't": 0.28; 'cc:addr:python.org': 0.29; 'assuming': 0.29; 'like:': 0.33; 'file': 0.34; 'open': 0.34; 'thanks': 0.35; 'python.org': 0.35; 'something': 0.36; 'text': 0.36; 'but': 0.36; 'whatever': 0.37; 'subject:: ': 0.37; 'pm,': 0.38; 'reply': 0.63; 'within': 0.64; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'received:74.208': 0.72; 'received:74.208.4.194': 0.84 |
| Date | Tue, 26 Jun 2012 13:37:42 -0400 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
| MIME-Version | 1.0 |
| To | David Thomas <dthomas86@me.com> |
| Subject | Re: Executing Python Scripts on Mac using Python Launcher |
| References | <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <mailman.1494.1340653759.4697.python-list@python.org> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> |
| In-Reply-To | <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:xdmY7mUgWcUuxuAaM6rnLRmFD9XEd68EPZF+dHhWNOg /IT2vm20MR7a9bccYxLPOAFNDqvIj6bdRWkhAHoRFekTZooBkA 8D+tCiY8Z+Z3nzF9+NS/FAvT4UZCnMcDEJduosRQk0LoOs8kFL aLUvpBnDrhGnajTDXdQ1PMMmCkNNUgPB075GxQ4M8T2ytm3318 gynbnMLISrDN/oS/CS6Qw2FyJQ0kUGSdVXZDxYatSS66JkyIyu YMOwFJ2GC6fwkhP6RwbqUE1pOu+bX/9q6rgsdBVgBK6JZ379u9 mYQGl7+fqD/Q0G4jZKBQuxIjGpIVKCnD7A/SICcQRqYYcST+g= = |
| Cc | python-list@python.org, comp.lang.python@googlegroups.com |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1522.1340732297.4697.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1340732297 news.xs4all.nl 6902 [2001:888:2000:d::a6]:40431 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:24473 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-25 11:19 -0700
Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-25 12:49 -0700
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 13:37 -0400
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 14:32 -0400
Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-26 11:56 -0700
Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 15:51 -0400
Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 22:12 +0200
Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 18:35 -0400
Re: Executing Python Scripts on Mac using Python Launcher Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-06-27 00:13 +0100
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:11 -0700
Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 21:16 +0200
Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 16:41 -0400
Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 23:48 +0200
Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 22:38 -0400
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 10:05 -0700
Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 20:29 +0200
Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 13:45 -0700
Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 23:33 +0200
csiph-web