def import_attribute(name):
    path, attr = name.rsplit('.', 1)
    module = __import__(path, globals(), locals(), [attr])

    return getattr(module, attr)
Only load if aws is available.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/tools.py/import_attribute--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/aws_sqs.py/__virtual__