#NEWLINE# def _testdirinlink( self , path , target ) : #NEWLINE# #INDENT# fullpath = self . _testdirpath ( path ) #NEWLINE# tpath = self . _testdirpath ( target ) #NEWLINE# if os . path . islink ( fullpath ) : #NEWLINE# #INDENT# contents = os . readlink ( fullpath ) #NEWLINE# if ( contents [ 0 ] == '/' ) : #NEWLINE# #INDENT# return ( contents == tpath ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( util . normpath ( os . path . join ( os . path . dirname ( tpath ) , contents ) ) == tpath ) #NEWLINE# #UNINDENT# #UNINDENT# return False