From 7985a052748d99087c157e34b8a5678f52213b91 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Wed, 30 May 2007 14:32:29 -0400 Subject: [PATCH] Console: fix reading log files --- services/console/interface/logviewer/logviewer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/console/interface/logviewer/logviewer.py b/services/console/interface/logviewer/logviewer.py index c741ac98..1ee5ce6b 100644 --- a/services/console/interface/logviewer/logviewer.py +++ b/services/console/interface/logviewer/logviewer.py @@ -80,10 +80,13 @@ class MultiLogView(gtk.VBox): def _update(self, tv_menu): # Searching log files for logfile in os.listdir(self._logs_path): + full_log_path = os.path.join(self._logs_path, logfile) + + if os.path.isdir(full_log_path): + continue if not self._activity.has_key(logfile): self._add_activity(logfile) - full_log_path = os.path.join(self._logs_path, logfile) model = LogBuffer(full_log_path) self._activity[logfile] = model