#NEWLINE# def _add_file( self , basedir , path , data ) : #NEWLINE# #INDENT# filepath = os . path . join ( basedir , path ) #NEWLINE# dirname = os . path . dirname ( filepath ) #NEWLINE# fileutils . ensure_tree ( dirname ) #NEWLINE# with open ( filepath , 'wb' ) as f : #NEWLINE# #INDENT# f . write ( data )