def __init__(self, navcore, eventmap):
GUIComponent.__init__(self)
VariableValue.__init__(self)
+ PerServiceBase.__init__(self, navcore, eventmap)
self.eventmap = eventmap
self.navcore = navcore
self.navcore.event.append(self.event)
{
// 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);