forked from KolibriOS/kolibrios
git-svn-id: svn://kolibrios.org@9382 a494cfbc-eb01-0410-851d-a64ba20cac60
14 lines
292 B
Python
14 lines
292 B
Python
import os
|
|
import urllib.request
|
|
from .logging import log
|
|
|
|
def download(link, path):
|
|
log(f"Downloading {path}... ", end = "")
|
|
urllib.request.urlretrieve(link, path)
|
|
log("Done.")
|
|
|
|
def download_if_not_exist(link, path):
|
|
if not os.path.exists(path):
|
|
download(link, path)
|
|
|