Harsh032/whatsapp_chat_analyzer
0
1# This file must be used with "source bin/activate" *from bash*2# You cannot run it directly3 4deactivate () {5 # reset old environment variables6 if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then7 PATH="${_OLD_VIRTUAL_PATH:-}"8 export PATH9 unset _OLD_VIRTUAL_PATH10 fi11 if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then12 PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"13 export PYTHONHOME14 unset _OLD_VIRTUAL_PYTHONHOME15 fi16 17 # This should detect bash and zsh, which have a hash command that must18 # be called to get it to forget past commands. Without forgetting19 # past commands the $PATH changes we made may not be respected20 if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then21 hash -r 2> /dev/null22 fi23 24 if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then25 PS1="${_OLD_VIRTUAL_PS1:-}"26 export PS127 unset _OLD_VIRTUAL_PS128 fi29 30 unset VIRTUAL_ENV31 unset VIRTUAL_ENV_PROMPT32 if [ ! "${1:-}" = "nondestructive" ] ; then33 # Self destruct!34 unset -f deactivate35 fi36}37 38# unset irrelevant variables39deactivate nondestructive40 41# on Windows, a path can contain colons and backslashes and has to be converted:42if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ] ; then43 # transform D:\path\to\venv to /d/path/to/venv on MSYS44 # and to /cygdrive/d/path/to/venv on Cygwin45 export VIRTUAL_ENV=$(cygpath "C:\Users\HARSH\PycharmProjects\pythonProject5\venv")46else47 # use the path as-is48 export VIRTUAL_ENV="C:\Users\HARSH\PycharmProjects\pythonProject5\venv"49fi50 51_OLD_VIRTUAL_PATH="$PATH"52PATH="$VIRTUAL_ENV/Scripts:$PATH"53export PATH54 55# unset PYTHONHOME if set56# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)57# could use `if (set -u; : $PYTHONHOME) ;` in bash58if [ -n "${PYTHONHOME:-}" ] ; then59 _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"60 unset PYTHONHOME61fi62 63if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then64 _OLD_VIRTUAL_PS1="${PS1:-}"65 PS1="(venv) ${PS1:-}"66 export PS167 VIRTUAL_ENV_PROMPT="(venv) "68 export VIRTUAL_ENV_PROMPT69fi70 71# This should detect bash and zsh, which have a hash command that must72# be called to get it to forget past commands. Without forgetting73# past commands the $PATH changes we made may not be respected74if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then75 hash -r 2> /dev/null76fi77 