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