execute-powershell (MCP)(command: "\nWrite-Host \"=== Before python ===\" -ForegroundColor
Cyan\nWrite-Host \"About to call python\"\n\n$output = python -c
\"print('hello')\" 2>&1 | Tee-Object -Variable captured\n\nWrite-Host
\"=== After python ===\" -ForegroundColor Green\nWrite-Host \"Python call
completed\"\n\nWrite-Host \"`n=== Captured Output ===\"\n$captured |
ForEach-Object { Write-Host $_ }\n\nWrite-Host \"`n=== Result Variable
===\"\nWrite-Host $output\n\nWrite-Host \"`nResult without color:
$output\"\n", workingDirectory: "C:\\gitproj\\chess_analyzer")
It doesn't return output from subprocesses
Stdout:
=== Before python ===
About to call python
=== After python ===
Python call completed
=== Captured Output ===
=== Result Variable ===
Result without color:
Stderr:
(none)
Working Directory: C:\gitproj\chess_analyze
I change the code a bit to return more.
Windows 10
It doesn't return output from subprocesses
I change the code a bit to return more.
Windows 10