#NEWLINE# def _output_to_regex( self , element , job_directory ) : #NEWLINE# #INDENT# work_dir_file = element . get ( 'from_work_dir' , None ) #NEWLINE# regex = ( '(%s.*)' % escape ( join ( job_directory . path , 'outputs' ) ) ) #NEWLINE# if work_dir_file : #NEWLINE# #INDENT# regex = ( '%s' % escape ( join ( job_directory . path , 'working' , work_dir_file ) ) ) #NEWLINE# #UNINDENT# return regex