resolve_name#
- astropy.utils.introspection.resolve_name(name: str, *additional_parts: str) object[source]#
 Deprecated since version 7.0: The resolve_name function is deprecated and may be removed in a future version. Use importlib (e.g. importlib.import_module for modules) instead.
Resolve a name like
module.objectto an object and return it.This ends up working like
from module import objectbut is easier to deal with than the__import__builtin and supports digging into submodules.- Parameters:
 - name
str A dotted path to a Python object–that is, the name of a function, class, or other object in a module with the full path to that module, including parent modules, separated by dots. Also known as the fully qualified name of the object.
- additional_partspython:iterable, optional
 If more than one positional arguments are given, those arguments are automatically dotted together with
name.
- name
 - Raises:
 ImportErrorIf the module or named object is not found.