3209 """ |
3209 """ |
3210 if self.startswithProjectPath(path): |
3210 if self.startswithProjectPath(path): |
3211 if self.ppath and path == self.ppath: |
3211 if self.ppath and path == self.ppath: |
3212 return "" |
3212 return "" |
3213 else: |
3213 else: |
3214 return path[len(self.ppath) + 1:] |
3214 relpath = path[len(self.ppath):] |
|
3215 if relpath.startswith(("/", "\\")): |
|
3216 relpath = relpath[1:] |
|
3217 return relpath |
3215 else: |
3218 else: |
3216 return path |
3219 return path |
3217 |
3220 |
3218 def getRelativeUniversalPath(self, path): |
3221 def getRelativeUniversalPath(self, path): |
3219 """ |
3222 """ |