#NEWLINE# def makefile( self , path , contents ) : #NEWLINE# #INDENT# self . makedirs ( os . path . split ( path ) [ 0 ] ) #NEWLINE# abs_path = os . path . join ( f . tmp_dir , path ) #NEWLINE# with open ( abs_path , 'w' ) as f : #NEWLINE# #INDENT# f . write ( contents ) #NEWLINE# #UNINDENT# return abs_path