init.ps1 555 B

1234567891011121314151617
  1. $ErrorActionPreference = "Stop"
  2. $null = $PSModuleAutoLoadingPreference
  3. # Set no_proxy for localhost if behind a proxy, otherwise,
  4. # the connections to localhost in scripts will time out.
  5. $env:no_proxy = "127.0.0.1,localhost"
  6. $ROOT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | Split-Path -Parent | Split-Path -Parent | Split-Path -Parent -Resolve
  7. Get-ChildItem -Path "$ROOT_DIR/hack/lib/windows" -File | ForEach-Object {
  8. if ($_.Name -ne "init.ps1") {
  9. . $_.FullName
  10. }
  11. }
  12. GPUStack.Log.Errexit
  13. Get-GPUStackVersionVar