Subversion Repositories Kolibri OS

Rev

Rev 9372 | Go to most recent revision | 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):
  6.     log(f"Downloading {path}... ", end = "")
  7.     urllib.request.urlretrieve(link, path)
  8.     log("Done.")
  9.  
  10. def download_if_not_exist(link, path):
  11.     if not os.path.exists(path):
  12.         download(link, path)
  13.  
  14.