mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-10 20:43:55 -05:00
Allow manual activation of virtualenvs inside $(pyenv-root)/versions (#115)
This commit is contained in:
@@ -67,7 +67,6 @@ venv="${versions}"
|
|||||||
|
|
||||||
# exit as success if some virtualenv outside from pyenv is already activated
|
# exit as success if some virtualenv outside from pyenv is already activated
|
||||||
if [ -n "${VIRTUAL_ENV}" ]; then
|
if [ -n "${VIRTUAL_ENV}" ]; then
|
||||||
if [[ "${VIRTUAL_ENV}" != "$(pyenv-root)/"* ]]; then
|
|
||||||
if [ -z "${FORCE}" ]; then
|
if [ -z "${FORCE}" ]; then
|
||||||
if [ -z "${QUIET}" ]; then
|
if [ -z "${QUIET}" ]; then
|
||||||
echo "pyenv-virtualenv: virtualenv \`${VIRTUAL_ENV}' is already activated" 1>&2
|
echo "pyenv-virtualenv: virtualenv \`${VIRTUAL_ENV}' is already activated" 1>&2
|
||||||
@@ -76,7 +75,6 @@ if [ -n "${VIRTUAL_ENV}" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if ! pyenv-virtualenv-prefix "${venv}" 1>/dev/null 2>&1; then
|
if ! pyenv-virtualenv-prefix "${venv}" 1>/dev/null 2>&1; then
|
||||||
if [ -z "$QUIET" ]; then
|
if [ -z "$QUIET" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user