Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit c90cf00)

Signed-off-by: Peng Huo <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 0454b6d commit 23541b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doctest/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

DIR=$(dirname "$0")

if hash python3.7 2> /dev/null; then
PYTHON=python3.7
if hash python3.8 2> /dev/null; then
PYTHON=python3.8
elif hash python3 2> /dev/null; then
# fallback to python3 in case there is no python3.7 alias; should be 3.7
# fallback to python3 in case there is no python3.8 alias; should be 3.8
PYTHON=python3
else
echo 'python3.7 required'
echo 'python3.8 required'
exit 1
fi

Expand Down

0 comments on commit 23541b4

Please sign in to comment.