equal
deleted
inserted
replaced
226 # expand vars and ~ |
226 # expand vars and ~ |
227 # translate paths relative to root (or home) into absolute paths |
227 # translate paths relative to root (or home) into absolute paths |
228 root = root or os.getcwd() |
228 root = root or os.getcwd() |
229 for c in self._tcfg, self._ucfg, self._ocfg: |
229 for c in self._tcfg, self._ucfg, self._ocfg: |
230 for n, p in c.items('paths'): |
230 for n, p in c.items('paths'): |
|
231 # Ignore sub-options. |
|
232 if ':' in n: |
|
233 continue |
231 if not p: |
234 if not p: |
232 continue |
235 continue |
233 if '%%' in p: |
236 if '%%' in p: |
234 self.warn(_("(deprecated '%%' in path %s=%s from %s)\n") |
237 self.warn(_("(deprecated '%%' in path %s=%s from %s)\n") |
235 % (n, p, self.configsource('paths', n))) |
238 % (n, p, self.configsource('paths', n))) |