convert Path.cwd() to str before appending '/mods'
This commit is contained in:
parent
7e82b9673b
commit
b00415ff2f
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user