env: add Python framework dirs to PATH on macOS

This commit is contained in:
Steffen Vogel 2018-12-26 11:36:04 +01:00
parent 3f62929517
commit 6211a5a970

View file

@ -36,13 +36,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
fi
# Python
if [ -d /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin ]; then
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
fi
if [ -d /opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin ]; then
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin:$PATH
fi
for VER in 3.7 2.7; do
if [ -d /opt/local/Library/Frameworks/Python.framework/Versions/$VER/bin ]; then
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/$VER/bin:$PATH
fi
done
fi
if [ -r ~/.gpg-agent-info ]; then