zope.dottedname
API¶
Dotted name support
- zope.dottedname.resolve.resolve(name, module=None)[source]¶
Resolve
name
to a Python object via imports / attribute lookups.If
module
is None,name
must be “absolute” (no leading dots).If
module
is not None, andname
is “relative” (has leading dots), the object will be found by navigating relative tomodule
.Returns the object, if found. If not, propagates the error.