On Jun 6, 2006, at 9:13 AM, Russell E Owen wrote: > At 5:06 PM -0700 2006-06-05, Bob Ippolito wrote: >> On Jun 5, 2006, at 4:56 PM, Russell E. Owen wrote: >> >>> When using py2app to create an application, is there a simple way >>> to get >>> the path to the copy of python that is/will be bundled into the >>> application? >>> >>> (I need this to copy in some matploblit data files) >>> So far I'm generating it manually using some assumptions. it >>> works but >>> if there's a safer/easier way, I'd rather use that. >> >> I don't know how matplotlib is structured, but you might want to >> look at writing a recipe for it. The pygame and PyOpenGL examples >> show how to include a few data files or an entire package as-is. > > That is a great idea. I'll take a look at creating such a recipe. > > Meanwhile...is there a simple way to get the path to the python > framework that is within the bundled application?
I'm not entirely sure what that means, but probably not.. I think the frameworks get copied after all of the install phases have been run. > Also, one comment that may or may not be be relevant (since I've > not looked at the recipes yet): the right place for the matplotlib > data files is deep in the included python framework but... Technically the correct answer to that is probably sys.prefix/share/ matplotlib or something.. "deep in the framework" doesn't really mean anything to anyone. -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig