diff --git a/custompkg/root/etc/skel/Library/user-setup/099.add-python-path.sh b/custompkg/root/etc/skel/Library/user-setup/099.add-python-path.sh index 4b92648..6a49d23 100755 --- a/custompkg/root/etc/skel/Library/user-setup/099.add-python-path.sh +++ b/custompkg/root/etc/skel/Library/user-setup/099.add-python-path.sh @@ -1,4 +1,6 @@ # 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