The shell can be used to remotely run any Python code interactively. Signed-off-by: Juraj Linkeš <juraj.lin...@pantheon.tech> --- dts/framework/remote_session/remote/python_shell.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dts/framework/remote_session/remote/python_shell.py
diff --git a/dts/framework/remote_session/remote/python_shell.py b/dts/framework/remote_session/remote/python_shell.py new file mode 100644 index 0000000000..cc3ad48a68 --- /dev/null +++ b/dts/framework/remote_session/remote/python_shell.py @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2023 PANTHEON.tech s.r.o. + +from pathlib import PurePath + +from .interactive_shell import InteractiveShell + + +class PythonShell(InteractiveShell): + _default_prompt: str = ">>>" + _command_extra_chars: str = "\n" + path: PurePath = PurePath("python3") -- 2.34.1