File tree Expand file tree Collapse file tree 2 files changed +164
-219
lines changed Expand file tree Collapse file tree 2 files changed +164
-219
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,17 @@ is_python_39() {
120120get_python_binary () {
121121 version=$1
122122 if [ " $( uname -s) " = " Darwin" ]; then
123- PYTHON=" /Library/Frameworks/Python.Framework/Versions/$version /bin/python3"
123+ if [[ " $version " == * " t" * ]]; then
124+ binary_name=" python3t"
125+ framework_dir=" PythonT"
126+ else
127+ binary_name=" python3"
128+ framework_dir=" Python"
129+ fi
130+ version=$( echo " $version " | sed ' s/t//g' )
131+ PYTHON=" /Library/Frameworks/$framework_dir .Framework/Versions/$version /bin/$binary_name "
124132 elif [ " Windows_NT" = " ${OS:- } " ]; then
125- version=$( echo $version | cut -d. -f1,2 | sed ' s/\.//g' )
133+ version=$( echo $version | cut -d. -f1,2 | sed ' s/\.//g; s/t//g ' )
126134 if [ -n " ${IS_WIN32:- } " ]; then
127135 PYTHON=" C:/python/32/Python$version /python.exe"
128136 else
You can’t perform that action at this time.
0 commit comments