Now running scripts depends on sys.executable beeing the same python interpreter (and venv) as flask is running as.
This does not work when running behind uwsgi as sys.executable points to uwsgi binary.
Fallback to use the python interpreter in the venv that uwsgi is configured with.
Now running scripts depends on sys.executable beeing the same python interpreter (and venv) as flask is running as. This does not work when running behind uwsgi as sys.executable points to uwsgi binary. Fallback to use the python interpreter in the venv that uwsgi is configured with.