mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-09-11 21:15:30 -04:00
12 lines
269 B
Python
12 lines
269 B
Python
import os
|
|
import urllib.request
|
|
from .logging import log
|
|
|
|
def download(link, path, skip_exist = False):
|
|
if skip_exist and os.path.exists(path):
|
|
return
|
|
log(f"Downloading {path}... ", end = "")
|
|
urllib.request.urlretrieve(link, path)
|
|
log("Done.")
|
|
|