File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ function virtualenvwrapper_get_python_version {
746
746
# VIRTUALENVWRAPPER_PYTHON because we're trying to determine the
747
747
# version installed there so we can build up the path to the
748
748
# site-packages directory.
749
- " $VIRTUAL_ENV /bin /python" -V 2>&1 | cut -f2 -d' ' | cut -f-2 -d.
749
+ " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_ENV_BIN_DIR /python" -V 2>&1 | cut -f2 -d' ' | cut -f-2 -d.
750
750
}
751
751
752
752
# Prints the path to the site-packages directory for the current environment.
@@ -1171,7 +1171,7 @@ function mktmpenv {
1171
1171
echo " This is a temporary environment. It will be deleted when you run 'deactivate'." | tee " $VIRTUAL_ENV /README.tmpenv"
1172
1172
1173
1173
# Update the postdeactivate script
1174
- cat - >> " $VIRTUAL_ENV /bin /postdeactivate" << EOF
1174
+ cat - >> " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_ENV_BIN_DIR /postdeactivate" << EOF
1175
1175
if [ -f "$VIRTUAL_ENV /README.tmpenv" ]
1176
1176
then
1177
1177
echo "Removing temporary environment:" $( basename " $VIRTUAL_ENV " )
@@ -1217,7 +1217,7 @@ function allvirtualenv {
1217
1217
echo " $d " | sed ' s/./=/g'
1218
1218
# Activate the environment, but not with workon
1219
1219
# because we don't want to trigger any hooks.
1220
- (source " $WORKON_HOME /$d /bin /activate" ;
1220
+ (source " $WORKON_HOME /$d /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate" ;
1221
1221
virtualenvwrapper_cd " $VIRTUAL_ENV " ;
1222
1222
" $@ " )
1223
1223
echo
You can’t perform that action at this time.
0 commit comments