#NEWLINE# def visitNode_img( self , node ) : #NEWLINE# #INDENT# fileName = os . path . join ( self . currDir , node . getAttribute ( 'src' ) ) #NEWLINE# ( target , ext ) = os . path . splitext ( fileName ) #NEWLINE# if ( self . diaHack and os . access ( ( target + '.dia' ) , os . R_OK ) ) : #NEWLINE# #INDENT# ext = '.dia' #NEWLINE# fileName = ( target + ext ) #NEWLINE# #UNINDENT# f = getattr ( self , ( 'convert_' + ext [ 1 : ] ) , None ) #NEWLINE# if ( not f ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# target = os . path . join ( self . currDir , ( os . path . basename ( target ) + '.eps' ) ) #NEWLINE# f ( fileName , target ) #NEWLINE# target = os . path . basename ( target ) #NEWLINE# self . _write_img ( target )