Lines Matching full:path
2 $S = [IO.Path]::PathSeparator # path separator. WIN:';', UNIX:":"
9 Write-Output "Adding ESP-IDF tools to PATH..."
10 $OLD_PATH = $env:PATH.split($S) | Select-Object -Unique # array without duplicates
36 if ($var_name -eq "PATH") {
37 # trim "%PATH%" or "`$PATH" regex
39 $var_val = $var_val.Trim($S + "%PATH%")
41 $var_val = $var_val.Trim($S + "`$PATH") regex
44 $env:PATH = $var_val + $S + $env:PATH variable
46 New-Item -Path "env:$var_name" -Value "$var_val" -Force
50 # Allow calling some IDF python tools without specifying the full path
52 $IDF_ADD_PATHS_EXTRAS = [IO.Path]::Combine(${IDF_PATH}, "components", "esptool_py", "esptool")
53 $IDF_ADD_PATHS_EXTRAS += ${S} + [IO.Path]::Combine(${IDF_PATH}, "components", "app_update")
54 $IDF_ADD_PATHS_EXTRAS += ${S} + [IO.Path]::Combine(${IDF_PATH}, "components", "espcoredump")
55 $IDF_ADD_PATHS_EXTRAS += ${S} + [IO.Path]::Combine(${IDF_PATH}, "components", "partition_table")
56 $env:PATH = $IDF_ADD_PATHS_EXTRAS + $S + $env:PATH variable
58 #Compare Path's OLD vs. NEW
59 $NEW_PATH = $env:PATH.split($S) | Select-Object -Unique # array without duplicates
62 Write-Output "`nAdded to PATH`n-------------"
65 Write-Output "No directories added to PATH:"