#NEWLINE# def _prepare( self , pbw_path ) : #NEWLINE# #INDENT# self . _bundle = PebbleBundle ( pbw_path , hardware = self . _pebble . watch_info . running . hardware_platform ) #NEWLINE# if ( not self . _bundle . is_app_bundle ) : #NEWLINE# #INDENT# raise AppInstallError ( 'This is not an app bundle.' ) #NEWLINE# #UNINDENT# self . total_size = self . _bundle . zip . getinfo ( self . _bundle . get_app_path ( ) ) . file_size #NEWLINE# if self . _bundle . has_resources : #NEWLINE# #INDENT# self . total_size += self . _bundle . zip . getinfo ( self . _bundle . get_resource_path ( ) ) . file_size #NEWLINE# #UNINDENT# if self . _bundle . has_worker : #NEWLINE# #INDENT# self . total_size += self . _bundle . zip . getinfo ( self . _bundle . get_worker_path ( ) ) . file_size