aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/PerServiceDisplay.py1
-rw-r--r--lib/python/python.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Components/PerServiceDisplay.py b/lib/python/Components/PerServiceDisplay.py
index a36d4a60..6de7e888 100644
--- a/lib/python/Components/PerServiceDisplay.py
+++ b/lib/python/Components/PerServiceDisplay.py
@@ -54,6 +54,7 @@ class PerServiceDisplayProgress(PerServiceBase, VariableValue, GUIComponent):
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)
diff --git a/lib/python/python.cpp b/lib/python/python.cpp
index b5ae4864..23e83e98 100644
--- a/lib/python/python.cpp
+++ b/lib/python/python.cpp
@@ -62,6 +62,8 @@ ePython::ePython()
{
// Py_VerboseFlag = 1;
+ Py_OptimizeFlag = 1;
+
Py_Initialize();
init_enigma();
@@ -75,9 +77,8 @@ ePython::~ePython()
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);