Fixed an issue dealing with project relative paths.

Mon, 28 Jun 2010 19:02:47 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 28 Jun 2010 19:02:47 +0200
changeset 371
913f2c88915b
parent 370
0c137bb40ac7
child 372
237c3fe739f5

Fixed an issue dealing with project relative paths.

Project/Project.py file | annotate | diff | comparison | revisions
diff -r 0c137bb40ac7 -r 913f2c88915b Project/Project.py
--- a/Project/Project.py	Sun Jun 27 12:19:45 2010 +0200
+++ b/Project/Project.py	Mon Jun 28 19:02:47 2010 +0200
@@ -3167,7 +3167,9 @@
         
         @param path path to be checked (string)
         """
-        if self.ppathRe:
+        if self.ppath and path == self.ppath:
+            return True
+        elif self.ppathRe:
             return self.ppathRe.match(path) is not None
         else:
             return False
@@ -3209,7 +3211,10 @@
             belong to the project (string)
         """
         if self.startswithProjectPath(path):
-            return self.ppathRe.sub("", path, 1)
+            if self.ppath and path == self.ppath:
+                return ""
+            else:
+                return self.ppathRe.sub("", path, 1)
         else:
             return path
         

eric ide

mercurial