Created
February 15, 2012 09:52
-
-
Save evansd/1834834 to your computer and use it in GitHub Desktop.
Open site-packages directory of currently active virtualenv in Nautlius
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
| # 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