DeferredImportCallbackFinder
(class from pyomo.common.dependencies)
- class pyomo.common.dependencies.DeferredImportCallbackFinder[source]
Bases:
objectCustom Finder that will wrap the normal loader to trigger callbacks
This
importlib.abc.MetaPathFinderfinder will wrap the normal loader returned byPathFinderwith a loader that will trigger custom callbacks after the module is loaded. We use this to trigger the post import callbacks registered throughattempt_import()even when a user imports the target library directly (and not through attribute access on theDeferredImportModule.- __init__()
Methods
__init__()find_spec(fullname, path[, target])invalidate_caches()Member Documentation