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 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)