Elastic beanstalk organizes python code under: /opt/python/
Specifically your current app is available under /opt/python/current/app
(/opt/python/current
is a link to /opt/python/bundle/${bundle_version}/
)
Remember that Beanstalk makes use of virtualenv and its location is: /opt/python/run/venv
If you want to use a python shell with all the environment variable you are expecting you have to:
source /opt/python/run/venv/bin/activate
then:
source /opt/python/current/env
(with the first command you activate the virtual environment with the seconds you load up all the environment variables you did define via eb settings)