From: W. Trevor King Date: Wed, 19 May 2010 10:05:18 +0000 (-0400) Subject: Adjust path (if it exists) for the child playlist in FilterCommand X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=186c539ba6135258d71dffb5f8be1fb097718b3c;p=hooke.git Adjust path (if it exists) for the child playlist in FilterCommand --- 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)