Subversion Repositories Kolibri OS

Rev

Rev 9372 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9372 Rev 9382
Line -... Line 1...
-
 
1
import os
1
import urllib.request
2
import urllib.request
2
from .logging import log
3
from .logging import log
Line 3... Line 4...
3
 
4
 
4
def download(link, path):
5
def download(link, path):
5
    log(f"Downloading {path}... ", end = "")
6
    log(f"Downloading {path}... ", end = "")
6
    urllib.request.urlretrieve(link, path)
7
    urllib.request.urlretrieve(link, path)
Line -... Line 8...
-
 
8
    log("Done.")
-
 
9
 
-
 
10
def download_if_not_exist(link, path):