I would like to be able to retrieve some results from C++ when I call a Python script using the following command:
int nResult = PyRun_SimpleFileEx(PyFile_AsFile(pyFileObject), strScriptPath.GetBuffer(), 1);
The goal here is to be able to communicate between my Python script and my C++ code. I've seen some examples of code for when calling a Python function, but nothing concerning a whole script.