def which(exe):
    '''Return full path of an executable.
    '''
    for d in _PATH:
        for x in _xtensions:
            p = quoted(os.path.join(d, exe) + x)
            if os.access(p, os.X_OK):
                return p
    raise OSError('no such executable: %s' % (exe,))
Return full path of an executable.
    
recipes/Python/546532_PyChecker_postprocessor/recipe-546532.py