diff --git a/installer.py b/installer.py index 6c22f25..f03db2c 100644 --- a/installer.py +++ b/installer.py @@ -130,8 +130,8 @@ global modfolder if platform.system() == "Linux": print("Operating system detected: Linux") - os.chdir("/.minecraft") - mcfolder = Path.cwd() + os.chdir(".minecraft") + mcfolder = str(Path.cwd()) modfolder = mcfolder + '/mods' print("Changed current working directory to '" + str(mcfolder) + "'") @@ -143,7 +143,7 @@ if platform.system() == "Linux": elif platform.system() == "Windows": print("Operating system detected: Windows") os.chdir("AppData/Roaming/.minecraft") - mcfolder = Path.cwd() + mcfolder = str(Path.cwd()) print("Changed current working directory to '" + str(mcfolder) + "'") win_check_folder_exists("mods")