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: 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 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> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, 26 Jun 2012 22:12:54 +0200, Hans Mulder 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 > > 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 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 ) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/