The newer (Leopard) Xcode templates don't use py2app.  You can have the module copied to the Resources folder of the app bundle when you build-- add the Growl module to the Resources group/folder in Groups & Files.  If the Growl module is a directory, make sure you check the "Create Folder References for any added folders" radio button on the sheet that comes down when you add the files or folder.  Then it should get automatically copied to the app bundle. If not, you can drag it to the Copy Bundle Resources build phase manually.

Python will look in the app bundle for modules and the like, so you should be good to go.

Hope that helps -- again :-)

On Sun, Feb 22, 2009 at 3:02 PM, Yi Qiang <> wrote:
Since I got such a great & useful response to my last question, here is another one :-)

I am using the python bindings for Growl in my app.

What is the preferred method of adding this module to my xcode project so that it gets baked into the .app?

Looking through the py2app documentation, it has the '--includes' flag which looks relevant, but I can't figure out where py2app gets run in the Xcode build phase.

I'm using the Cocoa Python Document Based Application template.

Thanks again,

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
Pyobjc-dev mailing list