Skip to content

Commit

Permalink
3rd time's the charm?
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Sep 8, 2023
1 parent 61a59d5 commit 3211746
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/compilers/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 3211746

Please sign in to comment.