PyRun_File / PyRun_String
uhuenemoerder at hotmail.com
Sat Nov 6 21:06:46 CET 1999
this might have been asked before, but be sure I looked up deja.com etc.
before I sent this mail.
I would like to embed Python into my C++ Application. I already looked up
the functions PyRun_SimpleFile and PyRun_SimpleString, but since I need
multiple independent interpreters at once I think PyRun_File and
PyRun_String are the functions I need.
Could anyone provide me with the code for a small example app, like
// initialize the interpreter
// parse a file
// parse a string
// that's it.
More information about the Python-list