From 65b31c69b055c060062d4109f71f25e714171ed1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 25 Jul 2023 12:25:57 +0300 Subject: [PATCH] Support "force_ansi" option for core.exec and allow to raise exception on cmd error --- platformio/home/rpc/handlers/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/home/rpc/handlers/core.py b/platformio/home/rpc/handlers/core.py index 11b36da9..61de1ba1 100644 --- a/platformio/home/rpc/handlers/core.py +++ b/platformio/home/rpc/handlers/core.py @@ -85,7 +85,7 @@ class CoreRPC(BaseRPCHandler): args = ["--caller", app.get_session_var("caller_id")] + args kwargs = options.get("spawn", {}) - if "forceANSI" in options: + if "force_ansi" in options: environ = kwargs.get("env", os.environ.copy()) environ["PLATFORMIO_FORCE_ANSI"] = "true" kwargs["env"] = environ