Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elastic beanstalk undocumented venv path

Elastic beanstalk containers have theis python venv located at "/var/app/venv/staging-LQM1lest"

But what does "LQM1lest" even mean? Not a singe documentation page mentions it.

Is there way to get it programmatically? Because its really looks like random string and a subject of change, i dont like the idea of hardcoding it in deploy scripts.

like image 923
timhok Avatar asked Oct 20 '25 02:10

timhok


1 Answers

The python path env should be available through PYTHONPATH environment variable.

You can also source it and export manually if you want (as root):

source /opt/elasticbeanstalk/deployment/env
export PYTHONPATH
like image 130
Marcin Avatar answered Oct 21 '25 16:10

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!