def _get_filename(loader, mod_name):
    try:
        get_filename = loader.get_filename
    except __HOLE__:
        return None
    else:
        return get_filename(mod_name)

# Helper to get the loader, code and filename for a module
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/runpy.py/_get_filename