Skip to content

Commit 84b85d9

Browse files
committed
Undo unintended change to python detection in conductor.sh
1 parent 4c1398e commit 84b85d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ssh-helpers/conductor.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ detect_python() {
119119
[ -n "$python" ] && return 0
120120
return 1
121121
fi
122+
python_detected="1"
123+
python=$(command -v python3)
124+
[ -z "$python" ] && python=$(command -v python2)
125+
[ -z "$python" ] && python=$(command -v python)
126+
if [ -z "$python" -o ! -x "$python" ]; then python=""; return 1; fi
127+
log found python at $python
122128
return 0
123129
}
124130

0 commit comments

Comments
 (0)