Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24490

Re: Executing Python Scripts on Mac using Python Launcher

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; "wouldn't": 0.03; 'interpreter': 0.05; 'subject:Python': 0.05; 'executable': 0.09; 'python': 0.10; '(and,': 0.16; '22:12:54': 0.16; 'cleaner': 0.16; 'mean,': 0.16; 'reason.': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'subject:using': 0.16; 'wrote:': 0.17; 'file.': 0.18; 'windows': 0.20; 'saying': 0.20; 'module': 0.21; 'preferences': 0.22; 'url:home': 0.22; 'mention': 0.23; 'installed': 0.25; 'header:X -Complaints-To:1': 0.28; 'script': 0.28; 'though.': 0.29; 'run': 0.29; 'probably': 0.30; 'lines': 0.32; '+0200,': 0.33; 'execution': 0.33; 'file': 0.34; 'open': 0.34; 'option': 0.35; 'nature': 0.35; 'to:addr:python-list': 0.35; 'version': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'third': 0.36; 'mac': 0.36; 'subject:: ': 0.37; "didn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.39; 'anything': 0.39; 'header:Received:5': 0.39; 'myself': 0.61; 'kept': 0.63; 'fact,': 0.67; 'dennis': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Executing Python Scripts on Mac using Python Launcher
Date Tue, 26 Jun 2012 18:35:40 -0400
Organization > Bestiaria Support Staff <
References <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <mailman.1494.1340653759.4697.python-list@python.org> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> <mailman.1526.1340740315.4697.python-list@python.org> <4fea17c6$0$6940$e4fe514c@news2.news.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-76-249-16-22.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 3.3/32.846
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
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.1533.1340751059.4697.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340751059 news.xs4all.nl 6848 [2001:888:2000:d::a6]:41465
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24490

Show key headers only | View raw


On Tue, 26 Jun 2012 22:12:54 +0200, Hans Mulder <hansmu@xs4all.nl>
declaimed the following in gmane.comp.python.general:

> On 26/06/12 21:51:41, Dennis Lee Bieber wrote:
> > On Tue, 26 Jun 2012 10:19:45 -0700 (PDT), David Thomas
> > <dthomas86@me.com> declaimed the following in gmane.comp.python.general:
> > 
> > 
> >> http://www.freeimagehosting.net/ilbqt
> > 
> > 	That's an interesting configuration...
> > 
> > 	"pythonw.exe" is a version of the Python interpreter designed to NOT
> > OPEN a console -- so you've got a configuration saying "open a console
> > to run a no-console interpreter".
> 
> That's on Windows; on the Mac python and pythonw are identical.
> In fact, they're hard links to the same file.

	Okay, but...

	It may still be cleaner (to non-Mac users) if the execution
preferences still kept the "use terminal" to the python.exe, and left
"pythonw.exe" to "no terminal" applications <G>

	Even if the same executable is used in the end...

> 
> You may want to check "allow #! to override", though.
> 
> I mean, if there is a #! in a file pointing to a specific version of
> python, then it's probably there for a reason.  For example, the script
> might use a third party module installed only in that Python install.
>
	While I knew what that option meant, I didn't mention it myself as
the OP probably (based on the nature of the questions) wouldn't
understand the meaning... (And, on Windows at least, #! lines don't do
anything <G>)
 
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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