Calling python scripts from C++

Seeing as Panda already has python fairly tightly integrated into it, is there any simple wrapper for running a python file from within a Panda3D C++ program? Or would I just have to bind python to my C++ program in the same way that you would any other program?

Thanks!

Nothing special about Panda’s integration with Python. Just make outcalls the same way you would in any other program. python.org has plenty of documentation on this.

If you want to pass any Panda objects into your Python outcalls, there are a few calls that you need to know to convert your Panda object into a PyObject (or back again). There are several examples in the forums of this being done.

David