summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-30 19:24:43 -0800
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-30 19:24:43 -0800
commitc0c2ddddcdbc524c04437e73b5b3f8220393aaa4 (patch)
treeff3446a471ece1abc8dfa587b3266c4adbdad553
parenta96ed916104d46cd556e4f1f9c207e2752c1b9e0 (diff)
parentefd02e858ad49fd1dbc539e3d495db8b719f194b (diff)
downloadyoutube-dl-c0c2ddddcdbc524c04437e73b5b3f8220393aaa4.tar.gz
youtube-dl-c0c2ddddcdbc524c04437e73b5b3f8220393aaa4.tar.xz
youtube-dl-c0c2ddddcdbc524c04437e73b5b3f8220393aaa4.zip
Merge pull request #2281 from matthewfranglen/master
Fix #2280: Antigen now links to python script
-rw-r--r--youtube-dl.plugin.zsh7
1 files changed, 4 insertions, 3 deletions
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"