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


Groups > comp.lang.python > #24480

Re: Executing Python Scripts on Mac using Python Launcher

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'string.': 0.05; 'subject:Python': 0.05; 'python': 0.10; 'scripts': 0.10; 'gui': 0.15; '.py': 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; 'usage,': 0.16; 'input': 0.20; 'saying': 0.20; 'settings.': 0.22; 'url:home': 0.22; 'environment': 0.26; 'normally': 0.27; 'window': 0.27; 'header:X-Complaints-To:1': 0.28; 'script': 0.28; 'run': 0.29; 'adjust': 0.33; 'data,': 0.33; 'open': 0.34; 'screen': 0.35; 'should': 0.35; 'to:addr:python-list': 0.35; 'version': 0.35; 'charset:us-ascii': 0.36; 'text': 0.36; 'next': 0.37; '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; 'evaluate': 0.63; 'hence': 0.66; 'attempts': 0.72; 'dennis': 0.91; 'graphical': 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 15:51:41 -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>
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.1526.1340740315.4697.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340740315 news.xs4all.nl 6885 [2001:888:2000:d::a6]:46831
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24480

Show key headers only | View raw


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".

	Normally pythonw.exe is used with scripts having .pyw extension;
these are scripts that use tkinter, wxPython, or other GUI system to
create a graphical environment and don't want a console (terminal)
window cluttering the screen when they don't use text I/O.

	Console based programs (.py) should be run using python.exe; adjust
your settings.

> http://www.freeimagehosting.net/r5ars

	And this is to be expected... In Python 2.x, "input()" attempts to
evaluate the input data, and you didn't supply anything -- hence EOF.
For your usage, you want "raw_input()", which just grabs the next line
of text and returns it as a string.


	As for how to run if you've opened a console (shell [bash]) window,
the way to run a script is to type

	python <path/name/to/your/script>.py <any command line arguments>


-- 
	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