I have spent a good part of my day trying to run a Python file from c++. I have tried:
. . .
FILE * file = fopen ("file.py", "r");
PyRun_SimpleFile (file, "file.py");
. . .
This however just causes my application to crash. I am using python version 3.4.