Commits

Doug Hellmann committed 29d305c

predeactivate and postactivate hooks

  • Participants
  • Parent commits 3c8978e

Comments (0)

Files changed (1)

virtualenvwrapper_bashrc

         echo "ERROR: No activate for $WORKON_HOME/$env_name"
         return 1
     fi
+    if [ -f "$VIRTUAL_ENV/bin/predeactivate" ]
+    then
+        source "$VIRTUAL_ENV/bin/predeactivate"
+    fi
     source "$activate"
-    if [ -f "$WORKON_HOME/$env_name/bin/workdir" ]
+    if [ -f "$VIRTUAL_ENV/bin/postactivate" ]
     then
-        source "$WORKON_HOME/$env_name/bin/workdir"
+        source "$VIRTUAL_ENV/bin/postactivate"
     fi
 	return 0
 }