Source conda package activate/deactivat scripts if exist (fixes #173)

This commit is contained in:
Yamashita, Yuu
2016-05-24 00:39:40 +00:00
parent 98bb240843
commit d6bc583753
2 changed files with 32 additions and 0 deletions

View File

@@ -231,3 +231,19 @@ EOS
;;
esac
fi
# conda package anaconda/miniconda scripts (#173)
if [ -x "${prefix}/bin/conda" ]; then
shopt -s nullglob
case "${shell}" in
fish )
: # conda doesn't support fish
;;
* )
for script in "${prefix}/etc/conda/activate.d"/*.sh; do
echo ". \"${script}\";"
done
;;
esac
shopt -u nullglob
fi