From 895ee7de3fbe51f7bde3d59a9ed98c282252704d Mon Sep 17 00:00:00 2001 From: Dang Mai Date: Wed, 30 Jan 2013 09:50:27 -0500 Subject: [PATCH] Fix playlist_dir not resolving relative path --- beetsplug/smartplaylist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index c84f1c612..c8ff0f9be 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -42,7 +42,7 @@ def update_playlists(lib): else: paths = [item.path for item in items] basename = playlist['name'].encode('utf8') - m3u_path = os.path.join(playlist_dir, basename) + m3u_path = normpath(os.path.join(playlist_dir, basename)) with open(syspath(m3u_path), 'w') as f: for path in paths: f.write(path + '\n')