(name)
return found
Resolve a dotted name to a global object.
Resolve a dotted name to a global object.
Resolve a dotted name to a global object .
def _resolve(name):
    """Resolve a dotted name to a global object."""
    name = name.split('.')
    used = name.pop(0)
    found = __import__(used)
    for n in name:
        used = used + '.' + n
        try:
            found = getattr(found, n)
        except AttributeError:
            __import__(used)
            found = getattr(found, n)
    return found
def _resolve ( name ) : name = name . split ( '.' ) used = name . pop ( 0 ) found = __import__ ( used ) for n in name : used = used + '.' + n try : found = getattr ( found , n ) except AttributeError : __import__ ( used ) found = getattr ( found , n ) return found