Skip to content

Commit 0f32d31

Browse files
author
noirbizarre
committed
Replaced all remaining 'bin' occurences by $VIRTUALENVWRAPPER_ENV_BIN_DIR
1 parent 3da10cb commit 0f32d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualenvwrapper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ virtualenvwrapper_show_workon_options () {
286286
# NOTE: DO NOT use ls here because colorized versions spew control characters
287287
# into the output list.
288288
# echo seems a little faster than find, even with -depth 3.
289-
(cd "$WORKON_HOME"; for f in */$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate; do echo $f; done) 2>/dev/null | \sed 's|^\./||' | \sed 's|/bin/activate||' | \sort | (unset GREP_OPTIONS; \egrep -v '^\*$')
289+
(cd "$WORKON_HOME"; for f in */$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate; do echo $f; done) 2>/dev/null | \sed 's|^\./||' | \sed 's|/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate||' | \sort | (unset GREP_OPTIONS; \egrep -v '^\*$')
290290

291291
# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
292292
}
@@ -633,7 +633,7 @@ cpvirtualenv() {
633633
done
634634

635635
virtualenv "$target_env" --relocatable
636-
\sed "s/VIRTUAL_ENV\(.*\)$env_name/VIRTUAL_ENV\1$new_env/g" < "$source_env/bin/activate" > "$target_env/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate"
636+
\sed "s/VIRTUAL_ENV\(.*\)$env_name/VIRTUAL_ENV\1$new_env/g" < "$source_env/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate" > "$target_env/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate"
637637

638638
(cd "$WORKON_HOME" && (
639639
virtualenvwrapper_run_hook "pre_cpvirtualenv" "$env_name" "$new_env";

0 commit comments

Comments
 (0)