Make python version pick less depended on what is installed
This commit is contained in:
parent
cf2d6d06fd
commit
da56c8ea66
1 changed files with 10 additions and 6 deletions
|
|
@ -48,12 +48,16 @@ sqlUser() {
|
|||
rlRun "echo \"$SQLUSER_Q\" | mysql -u $TESTUSER -p$TESTPASS $TESTDB" $EXIT_CODE
|
||||
}
|
||||
|
||||
for p in python3 python2 /usr/libexec/platform-python; do
|
||||
if command -v $p; then
|
||||
export PYTHON=$p
|
||||
break
|
||||
fi
|
||||
done
|
||||
if rlIsRHEL "<8" ; then
|
||||
PYTHON=python2
|
||||
else
|
||||
for p in python3 python2 /usr/libexec/platform-python; do
|
||||
if command -v $p; then
|
||||
export PYTHON=$p
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue