Skip to content

Instantly share code, notes, and snippets.

@evansd
Created February 15, 2012 09:52
Show Gist options
  • Select an option

  • Save evansd/1834834 to your computer and use it in GitHub Desktop.

Select an option

Save evansd/1834834 to your computer and use it in GitHub Desktop.
Open site-packages directory of currently active virtualenv in Nautlius
# Open site-packages directory of currently active virtualenv in Nautlius
# (Relies on virtualenvwrapper)
function opensitepackages {
virtualenvwrapper_verify_workon_home || return 1
virtualenvwrapper_verify_active_environment || return 1
typeset site_packages="`virtualenvwrapper_get_site_packages_dir`"
\gnome-open "$site_packages"/$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment