wrap python path adder in if statement to prevent error
This commit is contained in:
parent
77018df61d
commit
66dee78df1
@ -1,4 +1,6 @@
|
|||||||
# adds homebrew python packages dir to python paths
|
# 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\")" >> \
|
echo "import site; site.addsitedir(\"$HOME/Library/Homebrew/lib/python2.7/site-packages\")" >> \
|
||||||
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user