X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube-dl.plugin.zsh;h=4edab5214a415f04659904962dbd4f4dcef580d8;hb=ff6b7b049b14a061a362e701df8ab4b2f7b82456;hp=2a1d7527e3b4eb3dee6c7c27ddb1ea56f2a8b69b;hpb=c8d8ec8567bc1cb52adb3aacebf990fe3c4db753;p=youtube-dl diff --git a/youtube-dl.plugin.zsh b/youtube-dl.plugin.zsh index 2a1d7527e..4edab5214 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"