[Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

Pierre Ratinaud ratinaud at univ-tlse2.fr
Sun Feb 17 10:55:47 CET 2013


Actually, I use Popen from subprocess. I don't know why I have written 
os.popen :)
Regards
Pierre

Le 17/02/2013 10:14, Chris Rebert a écrit :
>
> On Feb 17, 2013 1:05 AM, "Pierre Ratinaud" <ratinaud at univ-tlse2.fr 
> <mailto:ratinaud at univ-tlse2.fr>> wrote:
> >
> > Hi all,
> > I have create a .app with py2app for a wxpython application. The 
> resulting app does not work as expected if I double click on it (it 
> works but somewhere in the process, an encoding problem appear from 
> another program called with os.popen). This problem does not occur if 
> I launch my app directly with python, it does not occur if I launch 
> the app by double-clic on myapp inside the .app and it does not occur 
> if I open the .app from a terminal with the "open" command.
> > This is happening with python 2.7.2, wxpython2.9, py2app 0.7.3 under 
> Mac OS X 10.6.8.
>
> Not an answer to your direct problem, but: os.popen() is 
> quasi-deprecated. You should use the `subprocess` module instead.
>
> Cheers,
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20130217/557428e7/attachment.html>


More information about the Pythonmac-SIG mailing list