Spaces:
Sleeping
Sleeping
File size: 505 Bytes
0914710 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/bin/sh
# default value for PYTHONBIN=/usr/local/bin/python
# but it change because of poetry that it uses a virtualenv installed within the LAMBDA_TASK_ROOT=/var/task
echo "python installation path and version:"
which python
python --version
echo "lambda-entrypoint.sh: PYTHONPATH ${PYTHONPATH} ..."
echo "lambda-entrypoint.sh: PATH ${PATH} ..."
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
exec /usr/local/bin/aws-lambda-rie python -m awslambdaric "$@"
else
exec python -m awslambdaric "$@"
fi
|