expanduser() in hooke.playlist.load().
authorW. Trevor King <wking@drexel.edu>
Wed, 10 Nov 2010 16:13:32 +0000 (11:13 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 10 Nov 2010 16:13:32 +0000 (11:13 -0500)
hooke/playlist.py

index 3b5c874..a120aba 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)