From 6211a5a970ca9865f931aafd1c68f5a3807b97ab Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 26 Dec 2018 11:36:04 +0100 Subject: [PATCH] env: add Python framework dirs to PATH on macOS --- home/.bash_env | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/home/.bash_env b/home/.bash_env index 5c693cf..3bd21d4 100644 --- a/home/.bash_env +++ b/home/.bash_env @@ -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