#NEWLINE# def abs_path( self , path ) : #NEWLINE# #INDENT# 'Converts a relative path to an absolute path relative to the root.\n        Does nothing for paths that are already absolute.\n\n        :param str path: The path\n        :returns: The absolute path\n        :rtype: str\n\n        ' #NEWLINE# if ( not os . path . isabs ( path ) ) : #NEWLINE# #INDENT# return os . path . join ( path . root , path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return path