osx/custompkg/root/etc/skel/Library/user-setup/099.add-python-path.sh

7 lines
288 B
Bash
Raw Normal View History

2018-01-16 22:20:18 +00:00
# adds homebrew python packages dir to python paths
if [[ -d "$HOME/Library/Python/2.7/lib/python/site-packages/" ]]; then
2018-01-16 22:20:18 +00:00
echo "import site; site.addsitedir(\"$HOME/Library/Homebrew/lib/python2.7/site-packages\")" >> \
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
fi