From 186c539ba6135258d71dffb5f8be1fb097718b3c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 19 May 2010 06:05:18 -0400 Subject: [PATCH] Adjust path (if it exists) for the child playlist in FilterCommand --- hooke/plugin/playlist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hooke/plugin/playlist.py b/hooke/plugin/playlist.py index a17a892..3940a2f 100644 --- a/hooke/plugin/playlist.py +++ b/hooke/plugin/playlist.py @@ -21,6 +21,7 @@ several associated :class:`hooke.command.Command`\s for handling :mod:`hooke.playlist` classes. """ +import os.path import glob from ..command import Command, Argument, Failure @@ -301,6 +302,8 @@ Function returning `True` for "good" curves. p = params['playlist'].filter(filter_fn, hooke=hooke, inqueue=inqueue, outqueue=outqueue, params=params) p.name = params['name'] + if hasattr(p, 'path') and p.path != None: + p.set_path(os.path.join(os.path.dirname(p.path), p.name)) hooke.playlists.append(p) outqueue.put(p) -- 2.26.2