1 2 3
A copy & paste backport of Python 3.3's shutil.which function. On Python 3.3 and above, the module never does anything but return the stdlib shutil.which function.