equal
deleted
inserted
replaced
87 f = user.find('<') |
87 f = user.find('<') |
88 if f >= 0: |
88 if f >= 0: |
89 user = user[f+1:] |
89 user = user[f+1:] |
90 return user |
90 return user |
91 |
91 |
92 def expandpath(self, loc): |
92 def expandpath(self, loc, root=""): |
93 paths = {} |
93 paths = {} |
94 for name, path in self.configitems("paths"): |
94 for name, path in self.configitems("paths"): |
|
95 m = path.find("://") |
|
96 if m == -1: |
|
97 path = os.path.join(root, path) |
95 paths[name] = path |
98 paths[name] = path |
96 |
99 |
97 return paths.get(loc, loc) |
100 return paths.get(loc, loc) |
98 |
101 |
99 def write(self, *args): |
102 def write(self, *args): |