diff --git a/.gitignore b/.gitignore index 2f92d39..931fc77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.log *.env -test.py \ No newline at end of file +test.py +checklist.md \ No newline at end of file diff --git a/installer.py b/installer.py index 92bfbbd..0247608 100644 --- a/installer.py +++ b/installer.py @@ -27,8 +27,7 @@ elif platform.system() == "Darwin": os.chdir(homedir + '/.minecraft') mcfolder = Path.cwd() -os.chdir(homedir + '/.minecraft/mods') -modfolder = Path.cwd() +modfolder = homedir + '/.minecraft/mods' os.chdir(mcfolder) @@ -38,9 +37,10 @@ time.sleep(2) #begin mod backup and deletion -#DOESN'T CURRENTLY BACK UP EXISTING MODS. +#THIS DOESN'T CURRENTLY BACK UP EXISTING MODS. try: shutil.rmtree(modfolder) + print("Cleared previous mods.") except OSError as e: print("Error: %s - %s." % (e.filename, e.strerror)) @@ -67,4 +67,6 @@ tar_file_path = 'mods.tar.gz' extract_to = 'mods' extract_tar_archive(tar_file_path, extract_to) -print("") \ No newline at end of file +print("All Done!") +print("This script will exit and close in ten seconds. :)") +time.sleep(10) \ No newline at end of file