equal
deleted
inserted
replaced
445 |
445 |
446 def fixconfig(self, root=None, section=None): |
446 def fixconfig(self, root=None, section=None): |
447 if section in (None, 'paths'): |
447 if section in (None, 'paths'): |
448 # expand vars and ~ |
448 # expand vars and ~ |
449 # translate paths relative to root (or home) into absolute paths |
449 # translate paths relative to root (or home) into absolute paths |
450 root = root or pycompat.getcwd() |
450 root = root or encoding.getcwd() |
451 for c in self._tcfg, self._ucfg, self._ocfg: |
451 for c in self._tcfg, self._ucfg, self._ocfg: |
452 for n, p in c.items('paths'): |
452 for n, p in c.items('paths'): |
453 # Ignore sub-options. |
453 # Ignore sub-options. |
454 if ':' in n: |
454 if ':' in n: |
455 continue |
455 continue |