Fix p name collision bug in plugin.playlist.LoadCommand._run
authorW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 13:19:59 +0000 (09:19 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 13:19:59 +0000 (09:19 -0400)
hooke/plugin/playlist.py

index da16dfc8e348dac0c7f898acdfca941501faf467..69cc56227ba106a9736bf1ffc34a3bea1a64c093 100644 (file)
@@ -247,7 +247,7 @@ Drivers for loading curves.
     def _run(self, hooke, inqueue, outqueue, params):
         p = FilePlaylist(drivers=params['drivers'], path=params['input'])
         p.load(hooke=hooke)
-        playlist_names = [p.name for p in hooke.playlists]
+        playlist_names = [playlist.name for playlist in hooke.playlists]
         if p.name not in playlist_names:
             params['output playlist'] = p.name  # HACK: override input name.  How to tell if it is callback-generated?
         self._set_playlist(hooke, params, p)