From abd2d794372099cc4171c343cf4d2d8e87798e45 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 12 Aug 2010 22:08:24 -0400 Subject: [PATCH] Use the playlist's basename if it doesn't colide with earlier playlists. --- hooke/plugin/playlist.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.26.2