Subversion Repositories Kolibri OS

Rev

Rev 9382 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. import os
  2. import urllib.request
  3. from .logging import log
  4.  
  5. def download(link, path, skip_exist = False):
  6.     if skip_exist and os.path.exists(path):
  7.         return
  8.     log(f"Downloading {path}... ", end = "")
  9.     urllib.request.urlretrieve(link, path)
  10.     log("Done.")
  11.  
  12.