def executable(path):
    try:
        st = os.stat(path)
    except os.error:
        return False
    return st.st_mode & 0111 != 0
Test for executable file.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/CGIHTTPServer.py/executable