expanduser() in hooke.playlist.load().
[hooke.git] / hooke / playlist.py
index 3b5c8743ba30c04908f32effde1eec80ceafc49c..a120aba710ec8fc69487cc5bf942c6bc0490e13b 100644 (file)
@@ -572,7 +572,7 @@ def from_string(string):
 def load(path=None, drivers=None, identify=True, hooke=None):
     """Load a playlist from a file.
     """
-    path = playlist_path(path)
+    path = os.path.expanduser(playlist_path(path))
     with open(path, 'r') as f:
         text = f.read()
     playlist = from_string(text)