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: co...@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 <bryanabsm...@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@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to