aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/RedirectOutput.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Tools/RedirectOutput.py')
-rw-r--r--lib/python/Tools/RedirectOutput.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Tools/RedirectOutput.py b/lib/python/Tools/RedirectOutput.py
new file mode 100644
index 00000000..83cb5f8c
--- /dev/null
+++ b/lib/python/Tools/RedirectOutput.py
@@ -0,0 +1,11 @@
+import sys
+from enigma import ePythonOutput
+
+class EnigmaOutput:
+ def write(self, data):
+ ePythonOutput(data)
+
+ def flush():
+ pass
+
+sys.stdout = sys.stderr = EnigmaOutput()