# Run this in PowerShell before development commands: # . ./scripts/dev-shell.ps1 Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" . (Join-Path $PSScriptRoot '_pwsh-python-shim.ps1') $scriptPath = Resolve-SdtScriptPath -ScriptName 'dev_shell.py' $python = Resolve-SdtPython $lines = & $python $scriptPath export --shell pwsh if ($LASTEXITCODE -ne 0) { throw "Failed to initialize development shell via dev_shell.py" } foreach ($line in $lines) { Invoke-Expression $line } Write-Host "Development shell initialized from Python bootstrap script."