#NEWLINE# def instr( self , instrpaths = [ ] , outdir = None , emmaMetadataFile = None , merge = EMMA_MERGE . YES , outmode = EMMA_OUTMODE . COPY , commonOptions = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , filters = [ ] ) : #NEWLINE# #INDENT# '\n        The command line interface can be found here: http://emma.sourceforge.net/reference/ch02s03s03.html\n        Args:\n            :param instrpaths:\n            :param outdir:\n            :param emmaMetadataFile:\n            :param merge:\n            :param outmode:\n            :param filters:\n        \n        Returns:\n        ' #NEWLINE# options = '' #NEWLINE# if instrpaths : #NEWLINE# #INDENT# options += ' -instrpath ' #NEWLINE# for pth in instrpaths : #NEWLINE# #INDENT# options += ( "'%s'," % pth ) #NEWLINE# #UNINDENT# options = options [ 0 : ( - 1 ) ] #NEWLINE# #UNINDENT# if outdir : #NEWLINE# #INDENT# options += ( " -outdir '%s'" % outdir ) #NEWLINE# #UNINDENT# if emmaMetadataFile : #NEWLINE# #INDENT# options += ( " -outfile '%s'" % emmaMetadataFile ) #NEWLINE# #UNINDENT# options += ( ' -merge %s' % merge ) #NEWLINE# options += ( ' -outmode %s' % outmode ) #NEWLINE# if commonOptions : #NEWLINE# #INDENT# for entry in commonOptions . iteritems ( ) : #NEWLINE# #INDENT# options += ( ' -D%s=%s' % entry ) #NEWLINE# #UNINDENT# #UNINDENT# if filters : #NEWLINE# #INDENT# options += ' -filter ' #NEWLINE# for fltr in filters : #NEWLINE# #INDENT# options += ( '%s,' % fltr ) #NEWLINE# #UNINDENT# options = options [ 0 : ( - 1 ) ] #NEWLINE# #UNINDENT# cmd = self . _previewEmmaCmd ( 'emma instr' , options ) #NEWLINE# ( returnCode , outputStr ) = self . _runEmmaCommand ( cmd ) #NEWLINE# return self . _interpResultsEmmaInstrCmd ( returnCode , outputStr )