.pcode_python/.pcode/..enter.ps1

1
2
3
4
5
6
7
8
9
10
11
# Virtualenv Activate
& {
    $virtualenv_script = [io.path]::Combine(
        $global:_DEVENV_PROJECT_PATH, "venv", "Scripts", "Activate.ps1")
    if ([System.IO.File]::Exists($virtualenv_script)) {
        & $virtualenv_script
        $env:PYTHONPATH=$global:_DEVENV_PROJECT_PATH
        Write-Output "`$env:PYTHONPATH=$global:_DEVENV_PROJECT_PATH"
    }
}