Made it work with relative paths also.

This commit is contained in:
The Wobbler 2025-01-26 14:07:00 +01:00
parent 74bff6ea13
commit b2bd8ef784
4 changed files with 11 additions and 5 deletions

View file

@ -22,7 +22,7 @@ class Library:
self.playlists = [self.temporary_playlist]
def load(self):
path_playlists = f"{self.app.settings.library_path}/playlists"
path_playlists = os.path.expanduser(f"{self.app.settings.library_path}/playlists")
if not os.path.exists(path_playlists):
os.makedirs(path_playlists)