fredrik-corneliusson / click-web

Serve click scripts over the web
MIT License
265 stars 17 forks source link

Scripts does not run when serving flask-app behind uwsgi #12

Closed fredrik-corneliusson closed 1 year ago

fredrik-corneliusson commented 1 year ago

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.