Project/Project.py

changeset 2171
c7dd548d67d8
parent 2040
4cefd094353b
child 2192
61b3849df76d
equal deleted inserted replaced
2170:f4e0f6133ace 2171:c7dd548d67d8
2892 @return project relative path or unchanged path, if path doesn't 2892 @return project relative path or unchanged path, if path doesn't
2893 belong to the project (string) 2893 belong to the project (string)
2894 """ 2894 """
2895 return Utilities.fromNativeSeparators(self.getRelativePath(path)) 2895 return Utilities.fromNativeSeparators(self.getRelativePath(path))
2896 2896
2897 def getAbsolutePath(self, fn):
2898 """
2899 Public method to convert a project relative file path to an absolute
2900 file path.
2901
2902 @param fn file or directory name to convert (string)
2903 @return absolute path (string)
2904 """
2905 if not os.path.isabs(fn):
2906 fn = os.path.join(self.ppath, fn)
2907 return fn
2908
2897 def getAbsoluteUniversalPath(self, fn): 2909 def getAbsoluteUniversalPath(self, fn):
2898 """ 2910 """
2899 Public method to convert a project relative file path with universal 2911 Public method to convert a project relative file path with universal
2900 separators to an absolute file path. 2912 separators to an absolute file path.
2901 2913

eric ide

mercurial