Project/Project.py

branch
5_3_x
changeset 2630
d2051b6c5658
parent 2627
0a519a18d691
child 2631
06f866e83d3a
--- 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
         

eric ide

mercurial