Created
July 2, 2013 18:28
-
-
Save jseabold/5911795 to your computer and use it in GitHub Desktop.
Change to directory in which a Python program is installed.
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
| function pushdp { | |
| pushd `python -c "import os; import $1; print os.path.dirname($1.__file__)"` | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment