Merge pull request #2836 from jmchilton/pyuwsgi_fix

Fix Galaxy for if pyuwsgi is install in .venv.
This commit is contained in:
Dannon Baker
2016-08-22 15:44:54 -04:00
committed by GitHub
+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