diff options
author | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 01:59:05 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 01:59:05 -0800 |
commit | 97b6966efc517825d0d6a8d25decac33bc5e4ff1 (patch) | |
tree | 726d917e5eeef3464e1b794708c83712fd4533bd /archey.new | |
parent | 66ad07848e4447bfac54eeac936b61c60e9c3a0b (diff) |
Check if file exists instead of opening it.
Diffstat (limited to 'archey.new')
-rw-r--r-- | archey.new | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |