#NEWLINE# def create_manifest( self ) : #NEWLINE# #INDENT# manifest = '' #NEWLINE# for ( k , v ) in self . config [ 'manifest' ] . items ( ) : #NEWLINE# #INDENT# manifest += ( '%s = %s\n' % ( k , v ) ) #NEWLINE# #UNINDENT# manifest += ( 'Program = %s\n' % os . path . abspath ( self . program ) ) #NEWLINE# self . manifest_channels . append ( ( self . channel_random_rw_template % ( os . path . abspath ( self . nvram_filename ) , '/dev/nvram' ) ) ) #NEWLINE# manifest += '\n' . join ( self . manifest_channels ) #NEWLINE# manifest_fn = os . path . join ( self . tmpdir , ( 'manifest.%d' % self . node_id ) ) #NEWLINE# manifest_fd = open ( manifest_fn , 'wb' ) #NEWLINE# manifest_fd . write ( manifest . encode ( 'utf-8' ) ) #NEWLINE# manifest_fd . close ( ) #NEWLINE# return manifest_fn