[C++-sig] Passing C++ instance to embedded py
To best explain my problem, here is some code: struct A { A() { mTest = 1; std::cout << "Test: " << mTest; Py_Initialize(); object main_module = import("__main__"); object main_namespace = main_modul
[C++-sig] Instance access
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.