#NEWLINE# def get_current_log( self ) : #NEWLINE# #INDENT# 'Returns the current Adobe install log' #NEWLINE# logpath = '/Library/Logs/Adobe/Installers' #NEWLINE# proc = subprocess . Popen ( [ '/bin/ls' , '-t1' , logpath ] , bufsize = ( - 1 ) , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) #NEWLINE# ( output , dummy_err ) = proc . communicate ( ) #NEWLINE# if output : #NEWLINE# #INDENT# firstitem = str ( output ) . splitlines ( ) [ 0 ] #NEWLINE# if firstitem . endswith ( '.log' ) : #NEWLINE# #INDENT# return os . path . join ( logpath , firstitem ) #NEWLINE# #UNINDENT# #UNINDENT# return None