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 94 forks source link

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

Closed phw closed 7 months ago

phw commented 7 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 7 months ago

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