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

7 lines
288 B
Bash
Executable File

# adds homebrew python packages dir to python paths
if [[ -d "$HOME/Library/Python/2.7/lib/python/site-packages/" ]]; then
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