Actually set self.name in hooke.playlist.FilePlaylist.set_path
authorW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 11:41:46 +0000 (07:41 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 11:41:46 +0000 (07:41 -0400)
hooke/playlist.py

index b073387bf9a7eb5336ba585d3c629eb62747cc89..0be9e1e66dd972932c9bf83a1eca1e7d1230702b 100644 (file)
@@ -85,7 +85,7 @@ class FilePlaylist (Playlist):
                 path += '.hkp'
             self.path = path
             if self.name == None:
-                name = os.path.basename(path)
+                self.name = os.path.basename(path)
 
     def is_saved(self):
         return self.digest() == self._digest