parameters: (self, zipdir: str)
docstring: downloads and unzip a zip version from a git repo
docstring_summary: downloads and unzip a zip version from a git repo
docstring_tokens: downloads and unzip a zip version from a git repo
function: def launch_zip(self, zipdir: str) -> None:
          "downloads and unzip a zip version from a git repo"
  
          bakdir = None
          if os.path.exists(zipdir):
              bakdir = zipdir + ".bak"
              if os.path.exists(bakdir):
                  shutil.rmtree(bakdir)
              os.rename(zipdir, bakdir)
          os.makedirs(zipdir)
          zipurl = utils.get_zip_url(self.repo)
          if not zipurl:
              self.failure.emit(
                  self.repo,
                  translate("AddonsInstaller", "Error: Unable to locate ZIP from")
                  + " "
                  + self.repo.name,
              )
              return
  
          self.zipdir = zipdir
          self.bakdir = bakdir
  
          NetworkManager.AM_NETWORK_MANAGER.progress_made.connect(self.update_zip_status)
          NetworkManager.AM_NETWORK_MANAGER.progress_complete.connect(self.finish_zip)
          self.zip_download_index = (
              NetworkManager.AM_NETWORK_MANAGER.submit_monitored_get(zipurl)
          )
function_tokens: def launch_zip ( self , zipdir : str ) -> None : bakdir = None if os . path . exists ( zipdir ) : bakdir = zipdir + ".bak" if os . path . exists ( bakdir ) : shutil . rmtree ( bakdir ) os . rename ( zipdir , bakdir ) os . makedirs ( zipdir ) zipurl = utils . get_zip_url ( self . repo ) if not zipurl : self . failure . emit ( self . repo , translate ( "AddonsInstaller" , "Error: Unable to locate ZIP from" ) + " " + self . repo . name , ) return self . zipdir = zipdir self . bakdir = bakdir NetworkManager . AM_NETWORK_MANAGER . progress_made . connect ( self . update_zip_status ) NetworkManager . AM_NETWORK_MANAGER . progress_complete . connect ( self . finish_zip ) self . zip_download_index = ( NetworkManager . AM_NETWORK_MANAGER . submit_monitored_get ( zipurl ) )