From efd02e858ad49fd1dbc539e3d495db8b719f194b Mon Sep 17 00:00:00 2001 From: Matthew Franglen Date: Thu, 30 Jan 2014 20:44:16 +0000 Subject: [PATCH] Fix #2280: Antigen now links to python script --- youtube-dl.plugin.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube-dl.plugin.zsh b/youtube-dl.plugin.zsh index 2a1d7527e3..4edab5214a 100644 --- a/youtube-dl.plugin.zsh +++ b/youtube-dl.plugin.zsh @@ -18,6 +18,7 @@ # code is documented here: # https://github.com/zsh-users/antigen#notes-on-writing-plugins -# This specific script just adds the downloaded folder to the end of the $PATH, -# which allows the contained youtube-dl executable to be found. -export PATH=${PATH}:$(dirname $0) +# This specific script just aliases youtube-dl to the python script that this +# library provides. This requires updating the PYTHONPATH to ensure that the +# full set of code can be located. +alias youtube-dl="PYTHONPATH=$(dirname $0) $(dirname $0)/bin/youtube-dl"