equal
deleted
inserted
replaced
58 raise util.Abort(_("Failed to parse %s\n%s") % (f, inst)) |
58 raise util.Abort(_("Failed to parse %s\n%s") % (f, inst)) |
59 # translate paths relative to root (or home) into absolute paths |
59 # translate paths relative to root (or home) into absolute paths |
60 if root is None: |
60 if root is None: |
61 root = os.path.expanduser('~') |
61 root = os.path.expanduser('~') |
62 for name, path in self.configitems("paths"): |
62 for name, path in self.configitems("paths"): |
63 if path.find("://") == -1 and not os.path.isabs(path): |
63 if path and path.find("://") == -1 and not os.path.isabs(path): |
64 self.cdata.set("paths", name, os.path.join(root, path)) |
64 self.cdata.set("paths", name, os.path.join(root, path)) |
65 |
65 |
66 def setconfig(self, section, name, val): |
66 def setconfig(self, section, name, val): |
67 self.overlay[(section, name)] = val |
67 self.overlay[(section, name)] = val |
68 |
68 |