git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call reloadBouquets instead of loadBouquets
[enigma2.git]
/
lib
/
python
/
python.cpp
diff --git
a/lib/python/python.cpp
b/lib/python/python.cpp
index 5ec07dff50d0b7e7d54aecb92c43d561b3c6a14f..ad029fb67de01e73f5cb43f34473d10e77ed6ea8 100644
(file)
--- a/
lib/python/python.cpp
+++ b/
lib/python/python.cpp
@@
-3,6
+3,7
@@
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
extern "C" void init_enigma();
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
extern "C" void init_enigma();
+extern "C" void eBaseInit(void);
extern void bsodFatal();
#define SKIP_PART2
extern void bsodFatal();
#define SKIP_PART2
@@
-124,6
+125,7
@@
ePython::ePython()
PyEval_InitThreads();
init_enigma();
PyEval_InitThreads();
init_enigma();
+ eBaseInit();
}
ePython::~ePython()
}
ePython::~ePython()
@@
-188,6
+190,11
@@
int ePython::call(ePyObject pFunc, ePyObject pArgs)
} else
{
PyErr_Print();
} else
{
PyErr_Print();
+ ePyObject FuncStr = PyObject_Str(pFunc);
+ ePyObject ArgStr = PyObject_Str(pArgs);
+ eDebug("(PyObject_CallObject(%s,%s) failed)", PyString_AS_STRING(FuncStr), PyString_AS_STRING(ArgStr));
+ Py_DECREF(FuncStr);
+ Py_DECREF(ArgStr);
bsodFatal();
}
}
bsodFatal();
}
}