2021-04-28 19:12:09 +02:00
|
|
|
if [ "Windows_NT" = "$OS" ]; then
|
|
|
|
python='/cygdrive/c/python/python37/python.exe'
|
|
|
|
else
|
2021-06-09 16:25:23 +02:00
|
|
|
if [ -f /opt/mongodbtoolchain/v3/bin/python3 ]; then
|
|
|
|
python="/opt/mongodbtoolchain/v3/bin/python3"
|
|
|
|
elif [ -f "$(which python3)" ]; then
|
2021-06-25 01:45:51 +02:00
|
|
|
echo "Could not find mongodbtoolchain python, using system python $(which python3)" > 2
|
2021-06-09 16:25:23 +02:00
|
|
|
python=$(which python3)
|
|
|
|
else
|
2021-06-25 01:45:51 +02:00
|
|
|
echo "Could not find python3." > 2
|
2021-06-09 16:25:23 +02:00
|
|
|
return 1
|
|
|
|
fi
|
2021-04-28 19:12:09 +02:00
|
|
|
fi
|