def METHOD_NAME(basedir, exename):
    import os
    for root, _, files in os.walk(basedir):
        fpath = os.path.join(root, exename)
        if exename in files and os.access(fpath, os.X_OK):
            return os.path.abspath(fpath)
    return None