Fix playlist_dir not resolving relative path

This commit is contained in:
Dang Mai 2013-01-30 09:50:27 -05:00
parent f4107703fb
commit 895ee7de3f

View file

@ -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')