Support "force_ansi" option for core.exec and allow to raise exception on cmd error

This commit is contained in:
Ivan Kravets
2023-07-25 12:25:57 +03:00
parent d2fd0f242e
commit 65b31c69b0

View File

@ -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