Project/Project.py

changeset 155
375e3c884874
parent 153
ef200d69dba0
child 248
f4561c24989a
--- a/Project/Project.py	Thu Mar 25 18:29:33 2010 +0000
+++ b/Project/Project.py	Fri Mar 26 15:43:36 2010 +0000
@@ -3186,6 +3186,18 @@
         """
         return Utilities.fromNativeSeparators(fn.replace(self.ppath + os.sep, ""))
         
+    def getAbsoluteUniversalPath(self, fn):
+        """
+        Public method to convert a project relative file path with universal 
+        separators to an absolute file path.
+        
+        @param fn file or directory name to convert (string)
+        @return absolute path (string)
+        """
+        if not os.path.isabs(fn):
+            fn = os.path.join(self.ppath, Utilities.toNativeSeparators(fn))
+        return fn
+        
     def isProjectFile(self, fn):
         """
         Public method used to check, if the passed in filename belongs to the project.

eric ide

mercurial