diff options
author | Alexander Hayden <alexhayden25@gmail.com> | 2020-12-19 19:16:41 -0500 |
---|---|---|
committer | Alexander Hayden <alexhayden25@gmail.com> | 2020-12-19 19:16:41 -0500 |
commit | a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844 (patch) | |
tree | 3f3179cb3148ab3f1065b75024146cb262499ac5 /modpackman.py | |
parent | f1d6329799d4b32ce532b9d97e5e86420ec23326 (diff) | |
download | modpackman-a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844.tar.gz modpackman-a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844.zip |
installer downloads updates & write readme
Diffstat (limited to 'modpackman.py')
-rwxr-xr-x | modpackman.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modpackman.py b/modpackman.py index f578db4..18cdecc 100755 --- a/modpackman.py +++ b/modpackman.py @@ -45,9 +45,7 @@ def install(): else: print(f'Installing {name} from {url}...') print(f' ({i} of {len(pack_lock["mod_versions"])})', end='\r') - download_obj = requests.get(url, stream=True) - with open(mod_path, "wb") as write_file: - shutil.copyfileobj(download_obj.raw, write_file) + util.download_file(url, mod_path) print("Done!" + " " * 8) # Remove any old mods that might be stuck in the mods folder |