Instantly share code, notes, and snippets.

@jseabold jseabold/
Created Jul 2, 2013

What would you like to do?
Change to directory in which a Python program is installed.
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