You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env bash
|
|
#
|
|
# Summary: Deactivate virtual environment
|
|
#
|
|
# Usage: pyenv deactivate
|
|
#
|
|
# Deactivate a Python virtual environment.
|
|
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
{ printf "\x1B[31;1m"
|
|
echo
|
|
echo "Failed to deactivate virtualenv."
|
|
echo
|
|
echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly."
|
|
echo "Please restart current shell and try again."
|
|
echo
|
|
printf "\x1B[0m"
|
|
} 1>&2
|
|
exit 1
|