env: add Python framework dirs to PATH on macOS
This commit is contained in:
parent
3f62929517
commit
6211a5a970
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue