[Pythonmac-SIG] py2app question: path to included python

David M. Cooke cookedm at physics.mcmaster.ca
Tue Jun 6 20:38:18 CEST 2006


On Mon, 05 Jun 2006 16:56:41 -0700
"Russell E. Owen" <rowen at cesmail.net> 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.

Which version of matplotlib are you using? Latest versions put the data
files inside the matplotlib package (as opposed to a /share/ directory),
so it finds them relative to itself using __file__. That wouldn't
require knowing where python itself is.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
http://arbutus.physics.mcmaster.ca/dmc/ |cookedm at physics.mcmaster.ca


More information about the Pythonmac-SIG mailing list