mirror of https://github.com/axmolengine/axmol.git
parent
206ecbb703
commit
1c1989e333
|
@ -21,8 +21,8 @@ if ($IsWin) {
|
|||
}
|
||||
|
||||
$pathList = [System.Collections.ArrayList]$env:PATH.Split(';')
|
||||
if (!$pathList.IndexOf($AX_CONSOLE_BIN) -eq -1) {
|
||||
$pathList = [Environment]::GetEnvironmentVariable('PATH', 'User').Split(';')
|
||||
if ($pathList.IndexOf($AX_CONSOLE_BIN) -eq -1) {
|
||||
$pathList = [System.Collections.ArrayList][Environment]::GetEnvironmentVariable('PATH', 'User').Split(';')
|
||||
$pathList.Insert(0, $AX_CONSOLE_BIN)
|
||||
$PATH = $pathList -join ';'
|
||||
[Environment]::SetEnvironmentVariable('PATH', $PATH, 'User')
|
||||
|
|
Loading…
Reference in New Issue