From f386b5410fcad351ab1150d7226037703b446810 Mon Sep 17 00:00:00 2001 From: i30817 Date: Wed, 11 Jan 2023 06:19:11 +0000 Subject: [PATCH] fix possible path seperator bug if you try to import playlists made in another operating system when handling the relative path default form of cfg paths --- libretro_scummvm_playlist/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro_scummvm_playlist/__main__.py b/libretro_scummvm_playlist/__main__.py index 2c4f560..1823c1e 100644 --- a/libretro_scummvm_playlist/__main__.py +++ b/libretro_scummvm_playlist/__main__.py @@ -72,7 +72,7 @@ def getPath(cfg: Path, setting: str, default_value: str): except: return None if fdir.startswith(r':\'): - fdir = fdir.replace(':', str(cfg.parent), 1) + fdir = fdir.replace(r':\', str(cfg.parent) + os.sep, 1) elif fdir == 'default': if default_value: return Path(cfg.parent,default_value)