Project/Project.py

branch
5_0_x
changeset 368
3462f69bc17f
parent 338
548365eff7a6
child 400
8601082da32e
--- a/Project/Project.py	Fri Jun 25 18:24:59 2010 +0200
+++ b/Project/Project.py	Mon Jun 28 19:01:16 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