From 49052eeadcd62b9fda6be660c490d04577b6eabe Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 13 Feb 2006 17:45:05 +0000 Subject: pipe python stdout trough enigma --- lib/python/Tools/RedirectOutput.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/python/Tools/RedirectOutput.py (limited to 'lib/python/Tools/RedirectOutput.py') 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() -- cgit v1.2.3