Hi I\'m trying to embed python (2.7) into C++ (g++ 4.8.2) and hence call a python function from C++. This is the basic code provided in python documentation for embedding:
Put the following in the C/C++ code, just after Py_Initialize();
Py_Initialize();
PyRun_SimpleString("import sys"); PyRun_SimpleString("sys.path.append(\".\")");