We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1b369 commit 98c5d6dCopy full SHA for 98c5d6d
virtualenvwrapper_bashrc
@@ -295,3 +295,18 @@ function cdvirtualenv () {
295
virtualenvwrapper_verify_active_environment || return 1
296
cd $VIRTUAL_ENV/$1
297
}
298
+
299
+#
300
+# lssitepackages
301
302
+# Shows the content of the site-packages directory of the currently-active
303
+# virtualenv
304
305
306
+function lssitepackages () {
307
+ virtualenvwrapper_verify_active_environment || return 1
308
+ pyvers="`python -c 'import sys; print sys.version[:3]'`"
309
+ site_packages="lib/python${pyvers}/site-packages"
310
+ echo "$VIRTUAL_ENV/$site_packages"
311
+ ls -l $VIRTUAL_ENV/$site_packages
312
+}
0 commit comments