mpga/Load.ps1

11 lines
321 B
PowerShell
Raw Normal View History

2020-01-21 14:03:41 +00:00
$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)