Skip to content

Instantly share code, notes, and snippets.

@jseabold
Created July 2, 2013 18:28
Show Gist options
  • Select an option

  • Save jseabold/5911795 to your computer and use it in GitHub Desktop.

Select an option

Save jseabold/5911795 to your computer and use it in GitHub Desktop.
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