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 82862ed commit d1b2e4cCopy full SHA for d1b2e4c
virtualenvwrapper_bashrc
@@ -87,10 +87,14 @@ function workon () {
87
echo "ERROR: No activate for $WORKON_HOME/$env_name"
88
return 1
89
fi
90
+ if [ -f "$VIRTUAL_ENV/bin/predeactivate" ]
91
+ then
92
+ source "$VIRTUAL_ENV/bin/predeactivate"
93
+ fi
94
source "$activate"
- if [ -f "$WORKON_HOME/$env_name/bin/workdir" ]
95
+ if [ -f "$VIRTUAL_ENV/bin/postactivate" ]
96
then
- source "$WORKON_HOME/$env_name/bin/workdir"
97
+ source "$VIRTUAL_ENV/bin/postactivate"
98
99
return 0
100
}
0 commit comments