File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 135
135
fi
136
136
137
137
# Get python3 directory for each OS if installed
138
- if [ " $HAS_PYTHON3 " = true ]; then
138
+ if [ " $HAS_PYTHON3 " = true ] && [ " $( which python3 ) " = " /opt/homebrew/bin/python3 " ] ; then
139
139
echo " Detecting python3 version to set global path.."
140
140
141
141
PYTHON_VERSION=` python3 -c ' import platform; major, minor, patch = platform.python_version_tuple(); print(major + "." + minor);' `
@@ -159,12 +159,13 @@ if [ "$HAS_PYTHON3" = true ]; then
159
159
fi
160
160
161
161
# Copy splashkit python file to global location
162
- echo " Copying splashkit.py to " ${PYTHON_LIB} " "
163
-
164
- $PRIVILEGED cp " ${SKM_PATH} /python3/splashkit.py" " ${PYTHON_LIB} "
165
- if [ ! $? -eq 0 ]; then
166
- echo " Failed to copy splashkit.py to ${PYTHON_LIB} "
167
- # exit 1
162
+ if [ -d " $PYTHON_LIB " ]; then
163
+ echo " Copying splashkit.py to " ${PYTHON_LIB} " "
164
+ $PRIVILEGED cp " ${SKM_PATH} /python3/splashkit.py" " ${PYTHON_LIB} "
165
+ if [ ! $? -eq 0 ]; then
166
+ echo " Failed to copy splashkit.py to ${PYTHON_LIB} "
167
+ exit 1
168
+ fi
168
169
fi
169
170
fi
170
171
You can’t perform that action at this time.
0 commit comments