metabrainz / picard-plugins

Picard plugins: use 1.0 branch for Picard < 2.0 (python 2/Qt4) and 2.0 branch for Picard >= 2.0 (python 3/Qt5)
https://picard.musicbrainz.org/plugins/
145 stars 95 forks source link

PICARD-2821: Playlist: Fix crash if playlist and audio file are on different drives #370

Closed phw closed 9 months ago

phw commented 9 months ago

Fixes crash on Windows in playlist plugin if audio file and playlist are on different drives.

See PICARD-2821

https://docs.python.org/3/library/os.path.html#os.path.commonpath https://docs.python.org/3/library/os.path.html#os.path.relpath

phw commented 9 months ago

I tested on Linux and Windows (there with same and different drives). Also tested by chaban, see PICARD-2821