maybe this tutorial can help.
http://wiki.python.org/moin/boost.python/EmbeddingPython
On Mon, Nov 24, 2008 at 1:50 AM, fileoffset <[EMAIL PROTECTED]> wrote:
>
> Is it possible to access an object instance from within python?
>
> I am trying to automate a single class that is part of a larger, c
Try this:
main_namespace["instance"] = boost::python::ptr(this);
Assuming you have exposed the class to python, of course.
-/renji
On Mon, Nov 24, 2008 at 10:20 AM, fileoffset <[EMAIL PROTECTED]> wrote:
>
> Is it possible to access an object instance from within python?
>
> I am trying to automa
Is it possible to access an object instance from within python?
I am trying to automate a single class that is part of a larger, complex
framework. My idea is that I could load an embedded python script on
construction of the object, which would act on the 'this' or
'shared_from_this()' pointer.