comparison env/lib/python3.7/site-packages/galaxy/util/web_compat.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
comparison
equal deleted inserted replaced
4:79f47841a781 5:9b1c78e6ba9c
1 """Work around for gross circular dependency between galaxy.util and galaxy.web_stack.
2
3 Provide a function that will delay to forking in a uwsgi environment but run immediately
4 otherwise.
5 """
6 try:
7 from galaxy.web_stack import register_postfork_function
8 except ImportError:
9 def register_postfork_function(f, *args, **kwargs):
10 f(*args, **kwargs)