From f6ecba17ec227b8a6237c41701eaf2c2fc94ded9 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Wed, 9 Dec 2020 18:50:02 -0800 Subject: [PATCH] Update python3 framework detection to use 3.9 MacVim's CI build script was already updated to use Python 3.9 from Homebrew when building, so it would use that automatically, but update the auto-detection used for MacPorts and binary install support to use 3.9 as well. --- src/MacVim/vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MacVim/vimrc b/src/MacVim/vimrc index 2d52753a8c..32c89b387b 100644 --- a/src/MacVim/vimrc +++ b/src/MacVim/vimrc @@ -32,12 +32,12 @@ endif " or an installation from python.org: if exists("&pythonthreedll") && exists("&pythonthreehome") && \ !filereadable(&pythonthreedll) - if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/3.8/Python") - " MacPorts python 3.8 - set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/3.8/Python - elseif filereadable("/Library/Frameworks/Python.framework/Versions/3.8/Python") + if filereadable("/opt/local/Library/Frameworks/Python.framework/Versions/3.9/Python") + " MacPorts python 3.9 + set pythonthreedll=/opt/local/Library/Frameworks/Python.framework/Versions/3.9/Python + elseif filereadable("/Library/Frameworks/Python.framework/Versions/3.9/Python") " https://www.python.org/downloads/mac-osx/ - set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.8/Python + set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.9/Python endif endif