MCP-setup #16

Merged
meulilivio merged 9 commits from MCP-setup into main 2026-05-25 13:20:31 +02:00
Showing only changes of commit 4342a8e34b - Show all commits

View File

@ -1,5 +1,7 @@
import ast
import subprocess
import sys
import io
from pyflakes.api import check # For linting Code
from pyflakes.reporter import Reporter # For linting Code
@ -233,7 +235,8 @@ def run_python_sandboxed(code: str) -> str:
try:
result = subprocess.run(
["python", "-c", code],
[sys.executable, "-c", code],
stdin=subprocess.DEVNULL,
capture_output=True,
text=True,
timeout=EXEC_TIMEOUT)