switch to wget
over urllib
This commit is contained in:
parent
ce609cdc7a
commit
4bbc920579
10
installer.py
10
installer.py
@ -1,4 +1,4 @@
|
|||||||
import urllib
|
import wget
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import tarfile
|
import tarfile
|
||||||
import os
|
import os
|
||||||
@ -39,7 +39,7 @@ elif platform.system() == "Windows":
|
|||||||
|
|
||||||
os.chdir(mcfolder)
|
os.chdir(mcfolder)
|
||||||
|
|
||||||
#begin mod backup and deletion
|
#begin mod deletion
|
||||||
#THIS DOESN'T CURRENTLY BACK UP EXISTING MODS.
|
#THIS DOESN'T CURRENTLY BACK UP EXISTING MODS.
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(str("mods"))
|
shutil.rmtree(str("mods"))
|
||||||
@ -60,9 +60,9 @@ def extract_tar_archive(tar_file_path, extract_to):
|
|||||||
print("Starting install...")
|
print("Starting install...")
|
||||||
|
|
||||||
print("Fetching mods...")
|
print("Fetching mods...")
|
||||||
#this is the SIMPLEST implementation of curl i have ever seen i just NUTTED SO FUCKING HARD
|
# #this is the SIMPLEST implementation of curl i have ever seen i just NUTTED SO FUCKING HARD
|
||||||
url = 'https://git.adolin.xyz/saru/lobotomy-mod-pack/raw/branch/main/mods.tar.gz'
|
#take the last one back, this is fucking insane. wget the fucking goat. who knew windows package manager was so damn cool?
|
||||||
urllib.request.urlretrieve(url, 'mods.tar.gz')
|
wget.download('https://git.adolin.xyz/saru/lobotomy-mod-pack/raw/branch/main/mods.tar.gz')
|
||||||
|
|
||||||
print("Extracting and writing to disk...")
|
print("Extracting and writing to disk...")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user