aboutsummaryrefslogtreecommitdiff
path: root/modpackman.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2020-12-19 19:16:41 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2020-12-19 19:16:41 -0500
commita47f0a0dd1dd43f90a1a86fa6b67ae551c13a844 (patch)
tree3f3179cb3148ab3f1065b75024146cb262499ac5 /modpackman.py
parentf1d6329799d4b32ce532b9d97e5e86420ec23326 (diff)
downloadmodpackman-a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844.tar.gz
modpackman-a47f0a0dd1dd43f90a1a86fa6b67ae551c13a844.zip
installer downloads updates & write readme
Diffstat (limited to 'modpackman.py')
-rwxr-xr-xmodpackman.py4
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