Use absolute path to PYTHON and PERL, so test -x works properly in system tests

This commit is contained in:
Ondřej Surý
2020-04-27 12:23:44 +02:00
parent dd0faa1556
commit 968523dd8d
3 changed files with 4 additions and 4 deletions

View File

@@ -499,7 +499,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
HAS_PYYAML=0
if [ -n "$PYTHON" ] ; then
if [ -x "$PYTHON" ] ; then
$PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1
fi