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, and name is “relative” (has leading dots), the object will be found by navigating relative to module.

Returns the object, if found. If not, propagates the error.