aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-06-21 15:31:57 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-06-21 15:31:57 +0000
commitda9872eac33f4f8a085261c3cbdcbf4c8d664f65 (patch)
tree45fbd868e6554cf4b2c478f06d08eca550ef4902 /main
parent309ef1b36240139a265dd501c00d219ecd7428ca (diff)
downloadenigma2-da9872eac33f4f8a085261c3cbdcbf4c8d664f65.tar.gz
enigma2-da9872eac33f4f8a085261c3cbdcbf4c8d664f65.zip
use another function to initial import mytest.py (this fixes python
threads)... but take care of the fact that the most enigma2 code is not thread safe.. so dont call enigma2 parts from another python thread
Diffstat (limited to 'main')
-rw-r--r--main/enigma.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/enigma.cpp b/main/enigma.cpp
index 15692961..307edd5a 100644
--- a/main/enigma.cpp
+++ b/main/enigma.cpp
@@ -239,8 +239,9 @@ int main(int argc, char **argv)
setIoPrio(IOPRIO_CLASS_BE, 3);
- python.execute("mytest", "__main__");
-
+// python.execute("mytest", "__main__");
+ python.execFile("/usr/lib/enigma2/python/mytest.py");
+
if (exit_code == 5) /* python crash */
{
eDebug("(exit code 5)");