2628:f222704b09b1 | 2630:d2051b6c5658 |
---|---|
2830 """ | 2830 """ |
2831 if self.ppath: | 2831 if self.ppath: |
2832 if path == self.ppath: | 2832 if path == self.ppath: |
2833 return True | 2833 return True |
2834 elif Utilities.normcasepath(Utilities.toNativeSeparators(path)).startswith( | 2834 elif Utilities.normcasepath(Utilities.toNativeSeparators(path)).startswith( |
2835 Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath))): | 2835 Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath +"/"))): |
2836 return True | 2836 return True |
2837 else: | 2837 else: |
2838 return False | 2838 return False |
2839 else: | 2839 else: |
2840 return False | 2840 return False |
2891 """ | 2891 """ |
2892 if self.startswithProjectPath(path): | 2892 if self.startswithProjectPath(path): |
2893 if self.ppath and path == self.ppath: | 2893 if self.ppath and path == self.ppath: |
2894 return "" | 2894 return "" |
2895 else: | 2895 else: |
2896 p = path[len(self.ppath):] | 2896 return path[len(self.ppath) + 1:] |
2897 if p.startswith(("\\","/")): | |
2898 p = p[1:] | |
2899 return p | |
2900 else: | 2897 else: |
2901 return path | 2898 return path |
2902 | 2899 |
2903 def getRelativeUniversalPath(self, path): | 2900 def getRelativeUniversalPath(self, path): |
2904 """ | 2901 """ |