def rec_getattr(obj, attr, default=None):
    try:
        return reduce(getattr, attr.split('.'), obj)
    except AttributeError:
        return default
Store base swap images for later examination.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/tools.py/rec_getattr--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/imagecache.py/ImageCacheManager._store_swap_image