Refinement to the last change. 5_3_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Apr 2013 10:47:17 +0200
branch
5_3_x
changeset 2630
d2051b6c5658
parent 2628
f222704b09b1
child 2631
06f866e83d3a

Refinement to the last change.
(grafted from 95be6907871cce8df07b412159eebc46c16cead1)

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