From b00415ff2fb3db06d58e836844ede11793c30979 Mon Sep 17 00:00:00 2001 From: Obie Hinojosa Date: Wed, 28 May 2025 16:56:56 -0500 Subject: [PATCH] convert Path.cwd() to str before appending '/mods' --- installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")