From: W. Trevor King Date: Fri, 13 Aug 2010 02:08:24 +0000 (-0400) Subject: Use the playlist's basename if it doesn't colide with earlier playlists. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abd2d794372099cc4171c343cf4d2d8e87798e45;p=hooke.git Use the playlist's basename if it doesn't colide with earlier playlists. --- diff --git a/hooke/plugin/playlist.py b/hooke/plugin/playlist.py index 85fd2d8..da16dfc 100644 --- a/hooke/plugin/playlist.py +++ b/hooke/plugin/playlist.py @@ -247,6 +247,9 @@ 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] + 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) outqueue.put(p)