2626:f327632d56d2 | 2629:95be6907871c |
---|---|
2850 """ | 2850 """ |
2851 if self.ppath: | 2851 if self.ppath: |
2852 if path == self.ppath: | 2852 if path == self.ppath: |
2853 return True | 2853 return True |
2854 elif Utilities.normcasepath(Utilities.toNativeSeparators(path)).startswith( | 2854 elif Utilities.normcasepath(Utilities.toNativeSeparators(path)).startswith( |
2855 Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath))): | 2855 Utilities.normcasepath(Utilities.toNativeSeparators(self.ppath +"/"))): |
2856 return True | 2856 return True |
2857 else: | 2857 else: |
2858 return False | 2858 return False |
2859 else: | 2859 else: |
2860 return False | 2860 return False |
2911 """ | 2911 """ |
2912 if self.startswithProjectPath(path): | 2912 if self.startswithProjectPath(path): |
2913 if self.ppath and path == self.ppath: | 2913 if self.ppath and path == self.ppath: |
2914 return "" | 2914 return "" |
2915 else: | 2915 else: |
2916 p = path[len(self.ppath):] | 2916 return path[len(self.ppath) + 1:] |
2917 if p.startswith(("\\","/")): | |
2918 p = p[1:] | |
2919 return p | |
2920 else: | 2917 else: |
2921 return path | 2918 return path |
2922 | 2919 |
2923 def getRelativeUniversalPath(self, path): | 2920 def getRelativeUniversalPath(self, path): |
2924 """ | 2921 """ |