add VideoWindow Component
[enigma2.git] / lib / python / python.cpp
index 2d84287baefe3195fac2bb6292f9b13ee368fb10..b5ae486486efd5af9a34a529d4b95c0be7ac5dd2 100644 (file)
@@ -6,6 +6,7 @@
 #include <Python.h>
 
 extern "C" void init_enigma();
+extern void bsodFatal();
 
 DEFINE_REF(TestObj);
 
@@ -59,6 +60,8 @@ ePyObject &ePyObject::operator=(void *object)
 
 ePython::ePython()
 {
+//     Py_VerboseFlag = 1;
+       
        Py_Initialize();
        
        init_enigma();
@@ -127,6 +130,7 @@ int ePython::call(PyObject *pFunc, PyObject *pArgs)
                } else
                {
                        PyErr_Print();
+                       bsodFatal();
                }
        }
        return res;