diff options
| -rw-r--r-- | scripts/srcenv.ps1 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/srcenv.ps1 b/scripts/srcenv.ps1 index 4c973ca51..944c6394c 100644 --- a/scripts/srcenv.ps1 +++ b/scripts/srcenv.ps1 @@ -1,5 +1,6 @@ -$script_dir = Split-Path $MyInvocation.MyCommand.Path -$env:PATH = "$script_dir\..\core\build;$pwd;$env:PATH" -$env:XMAKE_PROGRAM_DIR = "$script_dir\..\xmake" -Set-Location "$script_dir\.." +$xmake_root = (Split-Path $PSScriptRoot -Parent) +$env:PATH = "$xmake_root\core\build;$pwd;$env:PATH" +$env:XMAKE_PROGRAM_FILE = "$xmake_root\core\build\xmake.exe" +$env:XMAKE_PROGRAM_DIR = "$xmake_root\xmake" +Set-Location "$xmake_root" Start-Process powershell
\ No newline at end of file |
