Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9381 → Rev 9382

/_tools/lib/network.py
1,3 → 1,4
import os
import urllib.request
from .logging import log
 
6,4 → 7,7
urllib.request.urlretrieve(link, path)
log("Done.")
 
def download_if_not_exist(link, path):
if not os.path.exists(path):
download(link, path)
 
/_tools/workspace/run.py
14,7 → 14,7
from lib.makeflop import Floppy
from lib.platform import is_win32, path
from lib.logging import log
from lib.network import download
from lib.network import download_if_not_exist
 
# TODO: Move into _tools/lib
def run_qemu(start_dir = "workspace"):
44,9 → 44,8
 
os.makedirs("workspace", exist_ok = True)
 
if not os.path.exists("workspace/kolibri.unmodified.img"):
img_url = "http://builds.kolibrios.org/eng/data/data/kolibri.img"
download(img_url, "workspace/kolibri.unmodified.img")
download_if_not_exist(img_url, "workspace/kolibri.unmodified.img")
 
# Create a copy of IMG
shutil.copyfile("workspace/kolibri.unmodified.img", "workspace/kolibri.img")