Skip to content

Commit d5f35e9

Browse files
committed
lssitepackages now also shows contents of virtualenv_path_extensions.pth, if that file exists
1 parent 6a76afa commit d5f35e9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

virtualenvwrapper_bashrc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,15 @@ function cdvirtualenv () {
306306
function lssitepackages () {
307307
virtualenvwrapper_verify_active_environment || return 1
308308
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
309+
site_packages="$VIRTUAL_ENV/lib/python${pyvers}/site-packages"
310+
echo "$site_packages"
311+
ls -l $site_packages
312+
313+
path_file="$site_packages/virtualenv_path_extensions.pth"
314+
if [ -f "$path_file" ]
315+
then
316+
echo
317+
echo "virtualenv_path_extensions.pth:"
318+
cat "$path_file"
319+
fi
312320
}

0 commit comments

Comments
 (0)