From da9872eac33f4f8a085261c3cbdcbf4c8d664f65 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sat, 21 Jun 2008 15:31:57 +0000 Subject: 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 --- main/enigma.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main/enigma.cpp') 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)"); -- cgit v1.2.3