Commits

Sander Smits committed d5f35e9

lssitepackages now also shows contents of virtualenv_path_extensions.pth, if that file exists

  • Participants
  • Parent commits 6a76afa

Comments (0)

Files changed (1)

virtualenvwrapper_bashrc

 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
+    site_packages="$VIRTUAL_ENV/lib/python${pyvers}/site-packages"
+    echo "$site_packages"
+    ls -l $site_packages
+    
+    path_file="$site_packages/virtualenv_path_extensions.pth"
+    if [ -f "$path_file" ]
+    then
+        echo
+        echo "virtualenv_path_extensions.pth:"
+        cat "$path_file"
+    fi
 }