Fix Galaxy for if pyuwsgi is install in .venv.

This commit is contained in:
John Chilton
2016-08-22 14:33:53 -04:00
parent bee9ebdbc1
commit 0cf4f7277e
+3 -1
View File
@@ -7,8 +7,10 @@ Handle postfork functions under uWSGI
# uwsgi-managed process.
try:
import uwsgi
if uwsgi.numproc:
if hasattr(uwsgi, "numproc"):
process_is_uwsgi = True
else:
process_is_uwsgi = False
except ImportError:
# This is not a uwsgi process, or something went horribly wrong.
process_is_uwsgi = False