Listing 1. Embedding Python in Three Lines void exec_pycode(const char* code) { Py_Initialize(); PyRun_SimpleString(code); Py_Finalize(); }