def __load_linktype__(link_type):
    """
    Given a string for a given module, attempt to load it.
    """

    try:
        filep, pathname, description = imp.find_module(link_type, sys.path)
        link_type_module = imp.load_module(link_type, filep, pathname,
                                           description)
    except __HOLE__:
        return None
    finally:
        if filep:
            filep.close()

    return link_type_module
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/linklayer.py/__load_linktype__