On 3/30/11 8:25 AM, Russell Owen wrote:
BTW: I'm also not allowing my code to be zipped up because I use __file__ to locate some non-code resources and the dynamically loaded scripts. I should convert that code but I'm not sure if there's a standard technique that will have long-term support. I recall that the 3rd party setuptools has something, but easy_install seems to be in flux.
Indeed setuptools does provide that feature, but frankly, it doesn't work well with py2app (or py2exe) packages. You can get it to work but only by copying the entire egg into the bundle as-is, and hand-including setuptools itself (that may have changed, I haven't tried lately).
In short, your __file__ method is probably easier to deal with, as you know exactly what it's doing.
py2app has its own way of dealing with non-code resources, but it's really for application specific resources, rather than package-specific.
-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 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG