#include <Python.h>
extern "C" void init_enigma();
+extern void bsodFatal();
DEFINE_REF(TestObj);
ePython::ePython()
{
+// Py_VerboseFlag = 1;
+
+// Py_OptimizeFlag = 1;
+
Py_Initialize();
init_enigma();
int ePython::execute(const std::string &pythonfile, const std::string &funcname)
{
PyObject *pName, *pModule, *pDict, *pFunc, *pArgs, *pValue;
-
pName = PyString_FromString(pythonfile.c_str());
-
+
pModule = PyImport_Import(pName);
Py_DECREF(pName);
} else
{
PyErr_Print();
+ bsodFatal();
}
}
return res;