[Pythonmac-SIG] py2app: How can I run tests using the bundled python interpreter?

Berg, Stuart bergs at janelia.hhmi.org
Thu Nov 7 20:34:28 CET 2013


Hi Ronald,

> Recent versions of py2app have a way to specify secondary python scripts to be included in the app bundle (the --extra-scripts option, introduced in version 0.7). You could use that to include the test script in the app bundle and launch it using the helper binary in ./dist/MyBundle.app/Contents/MacOS. 

The --extra-scripts option will satisfy my needs.  Thanks!  Somehow I overlooked this option when reading the documentation. I didn't understand what this option actually did.

> A helper script to launch a script with the right environment could also be useful (that way you don't have to copy your script in the application bundle). Could you file an issue about this in the py2app tracker (<https://bitbucket.org/ronaldoussoren/py2app/issues>)?

Done!  (Issue #125)

Thanks for your help, and thanks for your great work on py2app!

Cheers,
Stuart



More information about the Pythonmac-SIG mailing list