Commits

Sander Smits committed 7fe9ee2

added lssitepackages command

  • Participants
  • Parent commits c0a76f6

Comments (0)

Files changed (1)

virtualenvwrapper_bashrc

     virtualenvwrapper_verify_active_environment || return 1
     cd $VIRTUAL_ENV/$1
 }
+
+#
+# lssitepackages
+# 
+# Shows the content of the site-packages directory of the currently-active
+# virtualenv
+#
+
+function lssitepackages () {
+    virtualenvwrapper_verify_active_environment || return 1
+    pyvers="`python -c 'import sys; print sys.version[:3]'`"
+    site_packages="lib/python${pyvers}/site-packages"
+    echo "$VIRTUAL_ENV/$site_packages"
+    ls -l $VIRTUAL_ENV/$site_packages
+}