Project/Project.py

changeset 2629
95be6907871c
parent 2625
038d8dc1d813
child 2632
94121e2f55b9
--- a/Project/Project.py	Sun Apr 28 10:21:22 2013 +0200
+++ b/Project/Project.py	Sun Apr 28 10:47:17 2013 +0200
@@ -2852,7 +2852,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
@@ -2913,10 +2913,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