# Problems getting relative paths in .m3u playlists to work

**URL:** <https://discourse.mopidy.com/t/problems-getting-relative-paths-in-m3u-playlists-to-work/1115>\
**Category:** Misc\
**Created:** [February 15, 2016, 11:09pm UTC](https://discourse.mopidy.com/t/problems-getting-relative-paths-in-m3u-playlists-to-work/1115 "2016-02-15T23:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamish\_Cunningham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/hamish_cunningham/32/332_2.png) [@Hamish\_Cunningham](https://discourse.mopidy.com/u/Hamish_Cunningham)\
**Post date:** [February 15, 2016, 11:09pm UTC](https://discourse.mopidy.com/t/problems-getting-relative-paths-in-m3u-playlists-to-work/1115/1 "2016-02-15T23:09:35Z")

</div>

hi

Great project – thanks!

I’m running mopidy 1.1.2 via an install from [apt.mopidy.com](http://apt.mopidy.com)  
with the MusicBox extension. I’m running as a normal user, not  
a service, on the latest raspbian release on a Pi 2.

My issue is that relative paths in my .m3u playlists don’t seem to work,  
and adding base\_dir to the [m3u] config section results in  
a startup error (unknown config key m3u/base\_dir).

My config looks like this:

```
[m3u]
playlists_dir = /home/pi/Playlists
#base_dir = /home/pi/Music

[local]
media_dir = /home/pi/Music
data_dir = /home/pi/.local/share/mopidy
scan_follow_symlinks = true

```

When I open the playlist in MusicBox there are no contents – but  
if I convert my .m3u to contain absolute paths then the tracks do  
show up.

Am I doing something wrong?

Thanks, best

Hamish Cunningham  
[https://hamish.gate.ac.uk/](https://hamish.gate.ac.uk/)

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 15, 2016, 11:21pm UTC](https://discourse.mopidy.com/t/problems-getting-relative-paths-in-m3u-playlists-to-work/1115/2 "2016-02-15T23:21:13Z")

</div>

The `m3u/base_dir` config is new in Mopidy 2.0.0, released tonight. Upgrade and try again 🙂

---

<div class="post-metadata">

**Author:** ![Hamish\_Cunningham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/hamish_cunningham/32/332_2.png) [@Hamish\_Cunningham](https://discourse.mopidy.com/u/Hamish_Cunningham)\
**Post date:** [February 16, 2016, 11:47pm UTC](https://discourse.mopidy.com/t/problems-getting-relative-paths-in-m3u-playlists-to-work/1115/3 "2016-02-16T23:47:03Z")

</div>

Thanks Jodal, that worked!

Good timing 🙂

Have a good one,

H
