(module, dotpath)
return prop
Custom function to return the property of module at dotpath
Custom function to return the property of module at dotpath
Custom function to return the property of module at dotpath
def getAt(module, dotpath):
    '''Custom function to return the property of module at dotpath'''
    pathList = dotpath.split('.')
    prop = module
    while len(pathList):
        k = pathList.pop(0)
        try:
            prop = prop[k]
        except Exception:
            prop = getattr(prop, k)
    return prop
def getAt ( module , dotpath ) : pathList = dotpath . split ( '.' ) prop = module while len ( pathList ) : k = pathList . pop ( 0 ) try : prop = prop [ k ] except Exception : prop = getattr ( prop , k ) return prop