Created
May 18, 2011 20:32
-
-
Save simonwhitaker/979481 to your computer and use it in GitHub Desktop.
pymod - Python one-liner for finding the location on disk of a given Python module. Stick it in your .bashrc or whatever for instant pymod joy.
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
# pymod MOD: find file path to implementation for python module called MOD | |
alias pymod="python -c 'import sys; print(__import__(sys.argv[1]).__file__)'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment