This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# https://gist.github.com/4368898 | |
# Public domain code by anatoly techtonik <[email protected]> | |
# AKA Linux `which` and Windows `where` | |
# For Python 3 you probably want | |
# https://docs.python.org/dev/library/shutil.html#shutil.which | |
import os |