New submission from Joris VAN HOUTVEN :
when serving a Flask app with uwsgi, using
`sys.executable`
will provide you the path to your uwsgi executable, not your python executable.
However, the docs specify that it should always return the python interpreter:
https://docs.python.org/3/library
Joris VAN HOUTVEN added the comment:
OK, so it is indeed uwsgi interfering with the sys.executable value.
In the github pst Inada Naoki refers to:
"uwsgi is your current python interpreter, as it links the libpython.so.
Getting sys.executable is not possibile as there is no binary