Eddie L wrote:

Christopher Barker wrote:
Some quick poking did not make it clear to me where py2app builds the
__boot.__py file though.


If you create an app with py2app then right click on it and click show
package contents then you can browse the app's contents. __boot__.py is
located in Content/resources/__boot__.py.

yes, I meant I have no idea where in the Py2app code, py2app actually generates the __boot__.py file, so I can't see where to add a patch...


Yeah, I tried adding my custom __boot__.py to the data files since they were
being stored in the same location but py2app still used it's own creation.
Any ideas as to how I could change the file after it's been made? I'm new to
py2app so just a point in the right direction would be very helpful.

as you've seen, an app bundle is simply a directory with a special name and structure -- Finder shows it in a special way, but you can manipulate the files in it from the command line or a python script just like you'd manipulate any files.

so, in your setup.py, after running setup(), you can add code that either adds stuff to __boot__.py, or replaces it with another one -- whatever is easiest.

-Chris



--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

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

Reply via email to