From 32117469b81b953d022e36293819e99f46e49a8f Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sat, 9 Sep 2023 06:14:43 +0900 Subject: [PATCH] 3rd time's the charm? --- 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 c4c59c3a5..2b1f84b7e 100644 --- a/backend/compilers/download.py +++ b/backend/compilers/download.py @@ -990,7 +990,9 @@ def download_win9x(): dest_name="msvc40", ) - if os.path.exists(COMPILERS_DIR / "MSVC400-master"): + if os.path.exists(COMPILERS_DIR / "MSVC400-master") and not os.path.exists( + COMPILERS_DIR / "msvc4.0/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") @@ -1001,7 +1003,9 @@ def download_win9x(): dest_name="msvc42", ) - if os.path.exists(COMPILERS_DIR / "MSVC420-master"): + if os.path.exists(COMPILERS_DIR / "MSVC420-master") and not os.path.exists( + COMPILERS_DIR / "msvc4.2/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")