mpga/Load.ps1
2020-01-21 15:03:41 +01:00

11 lines
No EOL
321 B
PowerShell

$list = @()
Get-ChildItem -Path (Join-Path $PSScriptRoot mods) -Filter:*.ps1 -EA:Ignore | ForEach-Object {
$list += $_.BaseName
. $_.FullName
}
Write-Output "Loaded: [$($list -join "] [")]"
$Env:PATH += [System.IO.Path]::PathSeparator + "$(Join-Path $PSScriptRoot scripts)"
. (Join-Path $PSScriptRoot Vars.ps1)