Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/virtualenv/activation/nushell/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/virtualenv/activation/nushell/deactivate.nu
def-env deactivate-virtualenv [] {
    def has-env [name: string] {
        $name in (env).name
    }

    let is-windows = ((sys).host.name | str downcase) == 'windows'

    let path-name = if $is-windows {
        if (has-env 'Path') {
            'Path'
        } else {
            'PATH'
        }
    } else {
        'PATH'
    }

    load-env { $path-name : $env._OLD_VIRTUAL_PATH }

    let-env PROMPT_COMMAND = $env._OLD_PROMPT_COMMAND

    # Hiding the environment variables that were created when activating the env
    hide _OLD_VIRTUAL_PATH
    hide _OLD_PROMPT_COMMAND
    hide VIRTUAL_ENV
    hide VIRTUAL_PROMPT
}

deactivate-virtualenv

hide pydoc
hide deactivate

Hry