summaryrefslogtreecommitdiff
path: root/evergreen/prelude_python.sh
blob: 304cfa49bb12493d77eae080bce62a1acaaa0ec3 (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/v3/bin/python3 ]; then
    python="/opt/mongodbtoolchain/v3/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