[KERNEL][TEST] Only download img if not exist

git-svn-id: svn://kolibrios.org@9416 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-12-12 14:39:30 +00:00
parent 65cd85761c
commit 88f0d7c48f

View File

@ -322,7 +322,9 @@ def download_umka_imgs():
] ]
for img in imgs: for img in imgs:
download(f"http://ftp.kolibrios.org/users/Boppan/img/{img}", f"umka/img/{img}") if not os.path.exists(f"umka/img/{img}"):
download(f"http://ftp.kolibrios.org/users/Boppan/img/{img}",
f"umka/img/{img}")
if __name__ == "__main__": if __name__ == "__main__":
root_dir = os.getcwd() root_dir = os.getcwd()