From 61a59d5ecdb73f59e64fb154cf7db082f909a31d Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sat, 9 Sep 2023 06:12:27 +0900 Subject: [PATCH] oopth2 --- backend/compilers/download.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/compilers/download.py b/backend/compilers/download.py index 31c984d36..c4c59c3a5 100644 --- a/backend/compilers/download.py +++ b/backend/compilers/download.py @@ -989,7 +989,9 @@ def download_win9x(): url="https://github.com/itsmattkc/MSVC400/archive/refs/heads/master.zip", dest_name="msvc40", ) - shutil.move(COMPILERS_DIR / "MSVC400-master", COMPILERS_DIR / "msvc4.0") + + if os.path.exists(COMPILERS_DIR / "MSVC400-master"): + shutil.move(COMPILERS_DIR / "MSVC400-master", COMPILERS_DIR / "msvc4.0") if os.path.exists(COMPILERS_DIR / "msvc4.0/BIN"): shutil.move(COMPILERS_DIR / "msvc4.0/BIN", COMPILERS_DIR / "msvc4.0/Bin") set_x(COMPILERS_DIR / "msvc4.0/Bin/CL.EXE") @@ -998,7 +1000,9 @@ def download_win9x(): url="https://github.com/itsmattkc/MSVC420/archive/refs/heads/master.zip", dest_name="msvc42", ) - shutil.move(COMPILERS_DIR / "MSVC420-master", COMPILERS_DIR / "msvc4.2") + + if os.path.exists(COMPILERS_DIR / "MSVC420-master"): + shutil.move(COMPILERS_DIR / "MSVC420-master", COMPILERS_DIR / "msvc4.2") if os.path.exists(COMPILERS_DIR / "msvc4.2/bin"): shutil.move(COMPILERS_DIR / "msvc4.2/bin", COMPILERS_DIR / "msvc4.2/Bin") set_x(COMPILERS_DIR / "msvc4.2/Bin/CL.EXE")