Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/logviewer.py
diff options
context:
space:
mode:
authorEduardo Silva <edsiper@gmail.com>2007-10-30 22:28:00 (GMT)
committer Eduardo Silva <edsiper@gmail.com>2007-10-30 22:28:00 (GMT)
commit4d9e4dec8321ae1b8dd982837447ebd78de2cebf (patch)
treee168b4bb3d13dd3720a2bdafc8ac3a965354b31f /logviewer.py
parent57f06c30da57c2d78a12693c84e3a8a53e1592a1 (diff)
Read check permission
Diffstat (limited to 'logviewer.py')
-rw-r--r--logviewer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/logviewer.py b/logviewer.py
index 968f42a..1acac52 100644
--- a/logviewer.py
+++ b/logviewer.py
@@ -124,7 +124,11 @@ class MultiLogView(gtk.VBox):
return False
if not os.path.exists(path):
- print "ERROR: %s don't exists"
+ print "ERROR: %s don't exists" % path
+ return False
+
+ if not os.access(path, os.R_OK):
+ print "ERROR: I can't read '%s' file" % path
return False
logfile = self._get_filename_from_path(path)