CoolFace
Apppublic

adiren7/FoodVisionVIT

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
activate67 linesDownload Raw Back to Scripts
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    if [ ! "${1:-}" = "nondestructive" ] ; then32    # Self destruct!33        unset -f deactivate34    fi35}36 37# unset irrelevant variables38deactivate nondestructive39 40VIRTUAL_ENV="C:\Users\HP\OneDrive\Bureau\FoodVisionApp\env"41export VIRTUAL_ENV42 43_OLD_VIRTUAL_PATH="$PATH"44PATH="$VIRTUAL_ENV/Scripts:$PATH"45export PATH46 47# unset PYTHONHOME if set48# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)49# could use `if (set -u; : $PYTHONHOME) ;` in bash50if [ -n "${PYTHONHOME:-}" ] ; then51    _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"52    unset PYTHONHOME53fi54 55if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then56    _OLD_VIRTUAL_PS1="${PS1:-}"57    PS1="(env) ${PS1:-}"58    export PS159fi60 61# This should detect bash and zsh, which have a hash command that must62# be called to get it to forget past commands.  Without forgetting63# past commands the $PATH changes we made may not be respected64if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then65    hash -r 2> /dev/null66fi67