def configure_once(config=None, bind_in_runtime=True):
    """Create an injector with a callable config if not present, otherwise, do nothing."""
    with _INJECTOR_LOCK:
        if _INJECTOR:
            return _INJECTOR

        return configure(config, bind_in_runtime=bind_in_runtime)
def configure_once ( config = None , bind_in_runtime = True ) : with _INJECTOR_LOCK : if _INJECTOR : return _INJECTOR return configure ( config , bind_in_runtime = bind_in_runtime )
Create an injector with a callable config if not present, otherwise, do nothing.