Refinement to the last change.

Sun, 28 Apr 2013 10:47:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Apr 2013 10:47:17 +0200
changeset 2629
95be6907871c
parent 2626
f327632d56d2
child 2632
94121e2f55b9

Refinement to the last change.

Project/Project.py file | annotate | diff | comparison | revisions
--- 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