parameters: ()
return_statement: return 0
docstring: The main entry point for adb_push_built_products.
  
      Parse arguments and kick off the script. Return zero to indicate success.
      Raises an exception otherwise.
docstring_summary: The main entry point for adb_push_built_products.
docstring_tokens: The main entry point for adb_push_built_products .
function: def main():
      """
      The main entry point for adb_push_built_products.
  
      Parse arguments and kick off the script. Return zero to indicate success.
      Raises an exception otherwise.
      """
      parser = argument_parser()
      args = parser.parse_args()
  
      for path in args.paths:
          if os.path.isdir(path):
              full_paths = [
                  os.path.join(path, basename)
                  for basename in glob.glob(os.path.join(path, '*.so'))]
              _push(full_paths, args.destination)
          else:
              _push(path, args.destination)
  
      if args.ndk:
          libcpp = os.path.join(args.ndk,
                                'sources',
                                'cxx-stl',
                                'llvm-libc++',
                                'libs',
                                {
                                    'armv7': 'armeabi-v7a',
                                    'aarch64': 'arm64-v8a',
                                }[args.destination_arch],
                                'libc++_shared.so')
          _push(libcpp, args.destination)
  
      return 0
function_tokens: def main ( ) : parser = argument_parser ( ) args = parser . parse_args ( ) for path in args . paths : if os . path . isdir ( path ) : full_paths = [ os . path . join ( path , basename ) for basename in glob . glob ( os . path . join ( path , '*.so' ) ) ] _push ( full_paths , args . destination ) else : _push ( path , args . destination ) if args . ndk : libcpp = os . path . join ( args . ndk , 'sources' , 'cxx-stl' , 'llvm-libc++' , 'libs' , { 'armv7' : 'armeabi-v7a' , 'aarch64' : 'arm64-v8a' , } [ args . destination_arch ] , 'libc++_shared.so' ) _push ( libcpp , args . destination ) return 0