From d72dd6cea99d0a75eab9f29757eacaaf1b3560c2 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Mon, 9 Dec 2013 10:12:41 +0100 Subject: redirect stdout and stderr to null to suppress modules outputs --- py3status/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/py3status/__init__.py b/py3status/__init__.py index 68d491f..5d36b2e 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -601,6 +601,10 @@ class Py3statusWrapper(): if self.config['debug']: syslog(LOG_INFO, 'events thread started') + # suppress modules' ouput wrt issue #20 + sys.stdout = open('/dev/null', 'w') + sys.stderr = open('/dev/null', 'w') + # load and spawn modules threads for include_path, f_name in self.list_modules(): try: -- cgit v1.3