1 #ifndef __lib_python_python_h
2 #define __lib_python_python_h
5 #include <lib/base/object.h>
7 typedef struct _object PyObject;
9 // useable for debugging python refcounting
11 extern PyObject *New_TestObj();
20 TEMPLATE_TYPEDEF(ePtr<TestObj>, TestObjPtr);
28 ePyObject(ePyObject &p);
30 ePyObject &operator=(ePyObject &p);
31 ePyObject &operator=(void *p);
33 void *get() { return m_object; }
41 int execute(const std::string &pythonfile, const std::string &funcname);
42 static int call(PyObject *pFunc, PyObject *args);
43 static PyObject *resolve(const std::string &pythonfile, const std::string &funcname);