Re: [Pyobjc-dev] Embedding in Apps & Loading preferences Bundles
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-26 06:56:57
|
On Tuesday, Nov 26, 2002, at 02:56 Europe/Amsterdam, Peter Montagner wrote: > > On Tuesday, November 26, 2002, at 01:24 AM, Ronald Oussoren wrote: > >> On Monday, Nov 25, 2002, at 14:37 Europe/Amsterdam, bb...@ma... >> wrote: >> >>> Key challenge: The classes that are subsequently subclassed by the >>> loaded module must have instance variables that look/feel/act >>> exactly like the iVars in the original parent class.... >> >> That should be no problem, PyObjC can already to that. For me the key >> challenge is finding a way to initialize an embedded python >> interpreter and run a python script when the plugin bundle is loaded >> (and for bonus points: Initialize exactly 1 interpreter, even when >> loading more than 1 python-based plugin) > > Will this work with Apple's python? Or are you planning on shipping a > full python distro with the plugin? Otherwise it'd be a nice hack but > it wouldn't be distributable. It won't work with Apple's python. You'd therefore be required to either ship a partial python distribution with the plugin or somehow build a Python shared library that is compatible with Apple's python. The latter would be kind of a hack, but probably doable. Ronald |