updated python.sh

pull/2/head
Hari Sekhon 5 years ago
parent b61f9c98d4
commit 024045004d

@ -19,20 +19,11 @@ srcdir_bash_tools_python="$(dirname "${BASH_SOURCE[0]}")"
# shellcheck disable=SC1090
. "$srcdir_bash_tools_python/os.sh"
. "$srcdir_bash_tools_python/../.bash.d/paths.sh"
# shellcheck disable=SC2034
python="${PYTHON:-python}"
if is_mac; then
# try to find pip in brew installed Python versions since it is
# not in /System/Library/Frameworks/Python.framework/Versions/2.7/bin
for dir in /usr/local/Cellar/python*; do
if [ -d "$dir" ]; then
export PATH="$PATH:/$dir/bin"
fi
done
fi
if [ -n "${PIP:-}" ]; then
pip="$PIP"
else

Loading…
Cancel
Save