Subversion Repositories Kolibri OS

Rev

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

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