Salahuddin-Khan

Results comments of Salahuddin-Khan

The documentation mentions the following but doesn't mention how to get a function. **Calling Python functions** It is also possible to call python functions via operator(). py::function f = ;...

Sorry, I removed my frustration from the comment. It has been a very trying day for me and I'm racing to finish this for a deadline and let it get...

Thanks for the response this is now working for me: salah@Europa:~/Enlistments/scratch2/testpythoninterface$ ./pythontest Bob auto module = py::reinterpret_borrow(myModule); auto myFunc = module.attr("PrintObject"); Pet myPet("Bob"); myFunc(myPet); with the following python code: ```...

Thanks, I switched over to that for the module and it's now working. I still seem to need to do this to get it to find the module though: `PyRun_SimpleString("import...

In my case, the python module is being used for a plug in. I initialize it as follows: The PlugInModuleName is the name of the python module that is actually...