CoolFace
Apppublic

AlvesS077/SmartPlate

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
activate77 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    # Call hash to forget past locations. Without forgetting18    # past locations the $PATH changes we made may not be respected.19    # See "man bash" for more details. hash is usually a builtin of your shell20    hash -r 2> /dev/null21 22    if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then23        PS1="${_OLD_VIRTUAL_PS1:-}"24        export PS125        unset _OLD_VIRTUAL_PS126    fi27 28    unset VIRTUAL_ENV29    unset VIRTUAL_ENV_PROMPT30    if [ ! "${1:-}" = "nondestructive" ] ; then31    # Self destruct!32        unset -f deactivate33    fi34}35 36# unset irrelevant variables37deactivate nondestructive38 39# on Windows, a path can contain colons and backslashes and has to be converted:40case "$(uname)" in41    CYGWIN*|MSYS*|MINGW*)42        # transform D:\path\to\venv to /d/path/to/venv on MSYS and MINGW43        # and to /cygdrive/d/path/to/venv on Cygwin44        VIRTUAL_ENV=$(cygpath 'C:\Users\Admin\Desktop\projeto economia\venv')45        export VIRTUAL_ENV46        ;;47    *)48        # use the path as-is49        export VIRTUAL_ENV='C:\Users\Admin\Desktop\projeto economia\venv'50        ;;51esac52 53_OLD_VIRTUAL_PATH="$PATH"54PATH="$VIRTUAL_ENV/"Scripts":$PATH"55export PATH56 57VIRTUAL_ENV_PROMPT=venv58export VIRTUAL_ENV_PROMPT59 60# unset PYTHONHOME if set61# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)62# could use `if (set -u; : $PYTHONHOME) ;` in bash63if [ -n "${PYTHONHOME:-}" ] ; then64    _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"65    unset PYTHONHOME66fi67 68if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then69    _OLD_VIRTUAL_PS1="${PS1:-}"70    PS1="("venv") ${PS1:-}"71    export PS172fi73 74# Call hash to forget past commands. Without forgetting75# past commands the $PATH changes we made may not be respected76hash -r 2> /dev/null77