bundles / astropy latest / astropy / utils / introspection / _get_module_from_frame
function
astropy.utils.introspection:_get_module_from_frame
source: /astropy/utils/introspection.py :262
Signature
def _get_module_from_frame ( frm : FrameType ) → ModuleType | None Summary
Uses inspect.getmodule() to get the module that the current frame's code is running in.
Extended Summary
However, this does not work reliably for code imported from a zip file, so this provides a fallback mechanism for that case which is less reliable in general, but more reliable than inspect.getmodule() for this particular case.
Aliases
-
astropy.utils.introspection._get_module_from_frame