Lines Matching full:path
7 $Env:PATH environment variable and sets the prompt to signify that you are
12 Path to the directory that contains the virtual environment to activate. The
66 the PATH variable.
77 if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
78 Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
79 Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
83 if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
84 Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
85 Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
88 # The prior PATH:
89 if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
90 Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
91 Remove-Item -Path Env:_OLD_VIRTUAL_PATH
95 if (Test-Path -Path Env:VIRTUAL_ENV) {
96 Remove-Item -Path env:VIRTUAL_ENV
100 if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
101 Remove-Item -Path env:VIRTUAL_ENV_PROMPT
111 Remove-Item -Path function:deactivate
129 Path to the directory that contains the `pyvenv.cfg` file.
138 $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
146 $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
170 $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
171 $VenvExecDir = Get-Item -Path $VenvExecPath
173 Write-Verbose "Activation script is located in path: '$VenvExecPath'"
206 Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
207 $Prompt = Split-Path -Path $venvDir -Leaf
229 Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
240 if (Test-Path -Path Env:PYTHONHOME) {
241 Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
242 Remove-Item -Path Env:PYTHONHOME
245 # Add the venv to the PATH
246 Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
247 $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"