summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 01:59:05 -0800
committerDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 01:59:05 -0800
commit97b6966efc517825d0d6a8d25decac33bc5e4ff1 (patch)
tree726d917e5eeef3464e1b794708c83712fd4533bd
parent66ad07848e4447bfac54eeac936b61c60e9c3a0b (diff)
Check if file exists instead of opening it.
-rw-r--r--archey.new2
1 files changed, 1 insertions, 1 deletions
diff --git a/archey.new b/archey.new
index dd157ad..b3b2521 100644
--- a/archey.new
+++ b/archey.new
@@ -114,7 +114,7 @@ class Output:
self.distro = self.__detectDistro()
def __detectDistro(self):
- if open('/etc/pacman.conf'):
+ if os.path.exists('/etc/pacman.conf'):
return 'Arch Linux'
def append(self, display):