@@ -244,8 +244,8 @@ function virtualenvwrapper_run_hook {
244
244
source " $hook_script "
245
245
elif [ " ${1} " = " initialize" ]
246
246
then
247
- cat - 1>&2 << EOF
248
- virtualenvwrapper.sh: There was a problem running the initialization hooks.
247
+ cat - 1>&2 << EOF
248
+ virtualenvwrapper.sh: There was a problem running the initialization hooks.
249
249
250
250
If Python could not import the module virtualenvwrapper.hook_loader,
251
251
check that virtualenvwrapper has been installed for
@@ -557,7 +557,7 @@ function rmvirtualenv {
557
557
# List the available environments.
558
558
function virtualenvwrapper_show_workon_options {
559
559
virtualenvwrapper_verify_workon_home || return 1
560
- # NOTE: DO NOT use ls or cd here because colorized versions spew control
560
+ # NOTE: DO NOT use ls or cd here because colorized versions spew control
561
561
# characters into the output list.
562
562
# echo seems a little faster than find, even with -depth 3.
563
563
# Note that this is a little tricky, as there may be spaces in the path.
@@ -572,7 +572,7 @@ function virtualenvwrapper_show_workon_options {
572
572
# a slash, as that is an illegal character in a directory name.
573
573
# This yields a slash-separated list of possible env names.
574
574
# 4. Replace each slash with a newline to show the output one name per line.
575
- # 5. Eliminate any lines with * on them because that means there
575
+ # 5. Eliminate any lines with * on them because that means there
576
576
# were no envs.
577
577
(virtualenvwrapper_cd " $WORKON_HOME " && echo * /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate) 2> /dev/null \
578
578
| command \t r " \n" " " \
@@ -809,7 +809,7 @@ function virtualenvwrapper_get_python_version {
809
809
810
810
# Prints the path to the site-packages directory for the current environment.
811
811
function virtualenvwrapper_get_site_packages_dir {
812
- " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_ENV_BIN_DIR /python" -c " import distutils; print(distutils.sysconfig.get_python_lib())"
812
+ " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_ENV_BIN_DIR /python" -c " import distutils.sysconfig ; print(distutils.sysconfig.get_python_lib())"
813
813
}
814
814
815
815
# Path management for packages outside of the virtual env.
@@ -947,7 +947,7 @@ function cpvirtualenv {
947
947
typeset src_name=" $1 "
948
948
typeset trg_name=" $2 "
949
949
typeset src
950
- typeset trg
950
+ typeset trg
951
951
952
952
# without a source there is nothing to do
953
953
if [ " $src_name " = " " ]; then
@@ -991,10 +991,10 @@ function cpvirtualenv {
991
991
992
992
echo " Copying $src_name as $trg_name ..."
993
993
(
994
- [ -n " $ZSH_VERSION " ] && setopt SH_WORD_SPLIT
994
+ [ -n " $ZSH_VERSION " ] && setopt SH_WORD_SPLIT
995
995
virtualenvwrapper_cd " $WORKON_HOME " &&
996
- " $VIRTUALENVWRAPPER_VIRTUALENV_CLONE " " $src " " $trg "
997
- [ -d " $trg " ] &&
996
+ " $VIRTUALENVWRAPPER_VIRTUALENV_CLONE " " $src " " $trg "
997
+ [ -d " $trg " ] &&
998
998
virtualenvwrapper_run_hook " pre_cpvirtualenv" " $src " " $trg_name " &&
999
999
virtualenvwrapper_run_hook " pre_mkvirtualenv" " $trg_name "
1000
1000
)
0 commit comments