Sun, 28 Apr 2013 10:47:17 +0200
Refinement to the last change.
(grafted from 95be6907871cce8df07b412159eebc46c16cead1)
Project/Project.py | file | annotate | diff | comparison | revisions |
--- a/Project/Project.py Sun Apr 28 10:26:02 2013 +0200 +++ b/Project/Project.py Sun Apr 28 10:47:17 2013 +0200 @@ -2832,7 +2832,7 @@ if path == self.ppath: return True elif Utilities.normcasepath(Utilities.toNativeSeparators(path)).startswith( - Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath))): + Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath +"/"))): return True else: return False @@ -2893,10 +2893,7 @@ if self.ppath and path == self.ppath: return "" else: - p = path[len(self.ppath):] - if p.startswith(("\\","/")): - p = p[1:] - return p + return path[len(self.ppath) + 1:] else: return path