Create a gist now

Instantly share code, notes, and snippets.

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