Project/Project.py

changeset 2171
c7dd548d67d8
parent 2040
4cefd094353b
child 2192
61b3849df76d
--- a/Project/Project.py	Thu Nov 01 15:31:06 2012 +0100
+++ b/Project/Project.py	Thu Nov 01 18:29:58 2012 +0100
@@ -2894,6 +2894,18 @@
         """
         return Utilities.fromNativeSeparators(self.getRelativePath(path))
         
+    def getAbsolutePath(self, fn):
+        """
+        Public method to convert a project relative file path 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, fn)
+        return fn
+        
     def getAbsoluteUniversalPath(self, fn):
         """
         Public method to convert a project relative file path with universal

eric ide

mercurial