Commits

Christian Ebert  committed 77dd2e2

ui: clean up rcpath setting

  • Participants
  • Parent commits 347b33b

Comments (0)

Files changed (1)

File muttils/ui.py

 
     defrcpath = ['/etc/muttils/muttilsrc',
                  '/usr/local/etc/muttilsrc',
-                 os.path.expanduser('~/.muttilsrc'),]
+                 os.path.expanduser('~/.muttilsrc')]
 
     def __init__(self, rcpath=None):
-        self.rcpath = rcpath or self.defrcpath
+        self.rcpath = rcpath
+        if self.rcpath is None:
+            self.rcpath = self.defrcpath
         self.config = ConfigParser.SafeConfigParser()
 
     def updateconfig(self):