convert Path.cwd() to str before appending '/mods'

This commit is contained in:
Obie Hinojosa 2025-05-28 16:56:56 -05:00
parent 7e82b9673b
commit b00415ff2f

View File

@ -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")