Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix possible path seperator bug if you try to import playlists made i…
Browse files Browse the repository at this point in the history
…n another operating system when handling the relative path default form of cfg paths
  • Loading branch information
i30817 committed Jan 11, 2023
1 parent e983659 commit f386b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libretro_scummvm_playlist/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f386b54

Please sign in to comment.