summaryrefslogtreecommitdiff
path: root/evergreen/prelude_python.sh
blob: e45267dc2d3c2d3c508bccf9a919843298410e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ "Windows_NT" = "$OS" ]; then
  python='/cygdrive/c/python/python37/python.exe'
else
  if [ -f /opt/mongodbtoolchain/v4/bin/python3 ]; then
    python="/opt/mongodbtoolchain/v4/bin/python3"
  elif [ -f "$(which python3)" ]; then
    echo "Could not find mongodbtoolchain python, using system python $(which python3)" > 2
    python=$(which python3)
  else
    echo "Could not find python3." > 2
    return 1
  fi
fi