mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Apply path changes to running process
SetEnvironment only applies changes to PATH for new processes. Currently the provisioning runs the scripts in one process, hence changes are not applied when they are already needed. Change-Id: I82a360686651a57e5c94330a9b56671fca1493e5 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
@@ -116,6 +116,7 @@ function Add-Path
|
||||
|
||||
$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
[Environment]::SetEnvironmentVariable("Path", $oldPath + ";$Path", [EnvironmentVariableTarget]::Machine)
|
||||
$Env:PATH = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
}
|
||||
|
||||
function is64bitWinHost
|
||||
|
||||
Reference in New Issue
Block a user