diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-07-10 21:58:55 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-07-10 21:58:55 +0000 |
| commit | 40721e06065aecdbddf6919a36a618d0cba09e05 (patch) | |
| tree | 0802d8874c0e6224177fb1cf578db040bd111a4a /lib/python/python.cpp | |
| parent | d075c31a89b86975cc2d50d6612252ff3abca566 (diff) | |
| download | enigma2-40721e06065aecdbddf6919a36a618d0cba09e05.tar.gz enigma2-40721e06065aecdbddf6919a36a618d0cba09e05.zip | |
add missing base class initialization
Diffstat (limited to 'lib/python/python.cpp')
| -rw-r--r-- | lib/python/python.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
