correct typos
This commit is contained in:
parent
98c1324af0
commit
d542397870
@ -177,10 +177,10 @@ elif platform.system() == "Windows":
|
|||||||
os.chdir("AppData/Roaming/.minecraft")
|
os.chdir("AppData/Roaming/.minecraft")
|
||||||
except:
|
except:
|
||||||
print("[ERR!] Fatal: Minecraft directory not found. (Is Minecraft installed?)")
|
print("[ERR!] Fatal: Minecraft directory not found. (Is Minecraft installed?)")
|
||||||
print("[ERR!] Fatal: This window will close in 10 seconds.")
|
print("[ERR!] Fatal: This window will close in 10 seconds...")
|
||||||
print
|
print
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
pass
|
exit
|
||||||
|
|
||||||
mcfolder = str(Path.cwd())
|
mcfolder = str(Path.cwd())
|
||||||
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")
|
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")
|
||||||
@ -192,7 +192,7 @@ elif platform.system() == "Windows":
|
|||||||
modfolder = str(mcfolder) + '/mods'
|
modfolder = str(mcfolder) + '/mods'
|
||||||
compress_tar(mcfolder, "backup.tar.gz")
|
compress_tar(mcfolder, "backup.tar.gz")
|
||||||
|
|
||||||
os.chdir(mcfolder)
|
os.chdir(mcfolder)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
# unclear if this timeout is necessary for UX
|
# unclear if this timeout is necessary for UX
|
||||||
|
|
||||||
@ -200,7 +200,6 @@ time.sleep(2)
|
|||||||
delete_file("mods.tar.gz")
|
delete_file("mods.tar.gz")
|
||||||
delete_directory("mods")
|
delete_directory("mods")
|
||||||
print("Deleting mod folder contents...")
|
print("Deleting mod folder contents...")
|
||||||
#shut up
|
|
||||||
os.mkdir(str("mods"))
|
os.mkdir(str("mods"))
|
||||||
|
|
||||||
# download mod archive from git repo and extract
|
# download mod archive from git repo and extract
|
||||||
|
Loading…
x
Reference in New Issue
Block a user