[Pythonmac-SIG] Sending stdout/err to a text console in a py2app App

Ronald Oussoren ronaldoussoren at mac.com
Tue Oct 12 19:58:37 CEST 2010


On 8 Oct, 2010, at 20:23, Russell E. Owen wrote:

> In article <C8D2C156.342A5%jefferis at gmail.com>,
> Gregory Jefferis <jefferis at gmail.com> wrote:
> 
>> Hello,
>> 
>> I've made a simple python script to wrap a complex, long running shell
>> script using easygui.  Then I've used py2app to make a Mac Application.  I'm
>> happy except I would really like stdout/stderr from both my python wrapper
>> script and the original shell script to be visible as the shell script runs.
>> If I run the app from the Terminal that happens.  But if I double click,
>> everything gets sent to the system logs (which can be inspected with
>> Console.app).  
>> 
>> Is there anyway I can send anything useful to that empty console windows
>> that appears when I start the py2app ?  Or a simple way to make a new
>> console to which I can print.
>> 
>> Thank you very much for any help you can offer,
>> 
>> Greg.
>> 
>> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>> MacOSX 10.5.8 intel
> 
> It would be so nice if py2applet had this built in. But alas it does not.

Patches are appreciated.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101012/0b54ea14/attachment.bin>


More information about the Pythonmac-SIG mailing list