Skip to content

Commit

Permalink
2019 Season 1 BWTA2 caches
Browse files Browse the repository at this point in the history
  • Loading branch information
Bytekeeper committed May 5, 2019
1 parent e0bda92 commit 3b35017
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scbw/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def download_bwta_caches(bwta_dir: str, bwta2_dir: str) -> None:
tmp_dir
)

download_extract_zip(
"https://github.com/Bytekeeper/sc-docker/releases/download/Maps_2019Season1/BWTA_cache_2019Season1.zip",
tmp_dir
)

for file in os.listdir(tmp_dir + "/bwapi-data/BWTA"):
if not os.path.exists(f"{bwta_dir}/{file}"):
shutil.move(tmp_dir + "/bwapi-data/BWTA/" + file, bwta_dir)
Expand Down

0 comments on commit 3b35017

Please sign in to comment.