[Pythonmac-SIG] py2app and Terminal
Conan C. Albrecht
conan at warp.byu.edu
Thu Dec 25 04:34:56 CET 2008
Be sure the shebang is at the TOP of your script -- first line with
nothing in front of it.
Py2app is really for GUI applications. The solution Sean suggests is
the best way for a terminal app.
____________________________________
Conan C. Albrecht, Ph.D.
Information Systems Department
Brigham Young University
Email: conan at warp.byu.edu
Phone: +1-801-805-1615
Web/Blog: http://warp.byu.edu/
On Dec 24, 2008, at 15:02, Sean DiZazzo wrote:
> Give your app a shebang line """#!/usr/bin/env python"" and then
> rename the script "<filename>.command"
>
> Then you can double click it and it will open a shell and run.
>
> ~Sean
>
> On Wed, Dec 24, 2008 at 10:53 AM, Bryan Smith
> <bryanabsmith at gmail.com> wrote:
> Hi everyone,
>
> I am just finishing up an application and I would like to create an
> app file for my program. That said, it's CLI based with no GUI. If I
> try to make an app, it only seems to work if I have a GUI. Is it
> possible to tell py2app to open Terminal.app first and run my
> program through that?
>
> Thanks,
> Bryan
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2727 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20081224/0c61168a/attachment.bin>
More information about the Pythonmac-SIG
mailing list