Skip to content

Commit 504b113

Browse files
committed
Merged in bwanamarko/virtualenvwrapper (pull request #17)
2 parents f00418b + e588eab commit 504b113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

virtualenvwrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function virtualenvwrapper_verify_workon_home {
118118
then
119119
echo "NOTE: Virtual environments directory $WORKON_HOME does not exist. Creating..." 1>&2
120120
fi
121-
mkdir -p $WORKON_HOME
121+
mkdir -p "$WORKON_HOME"
122122
RC=$?
123123
fi
124124
return $RC
@@ -609,7 +609,7 @@ function virtualenvwrapper_get_python_version {
609609

610610
# Prints the path to the site-packages directory for the current environment.
611611
function virtualenvwrapper_get_site_packages_dir {
612-
"$VIRTUAL_ENV/bin/python" -c "import distutils; print(distutils.sysconfig.get_python_lib())"
612+
"$VIRTUAL_ENV/$VIRTUALENVWRAPPER_ENV_BIN_DIR/python" -c "import distutils; print(distutils.sysconfig.get_python_lib())"
613613
}
614614

615615
# Path management for packages outside of the virtual env.
@@ -707,7 +707,7 @@ function lssitepackages {
707707
virtualenvwrapper_verify_workon_home || return 1
708708
virtualenvwrapper_verify_active_environment || return 1
709709
typeset site_packages="`virtualenvwrapper_get_site_packages_dir`"
710-
ls $@ $site_packages
710+
ls $@ "$site_packages"
711711

712712
path_file="$site_packages/_virtualenv_path_extensions.pth"
713713
if [ -f "$path_file" ]

0 commit comments

Comments
 (0)