def _handle_immediate_command(self, cmd: ImmediateCommand) -> None:
     SshMixin._handle_immediate_command(self, cmd)
     # It is possible that there is a command being executed both in the local and remote process,
     # interrupt them both
     with self._interrupt_lock:
         interrupt_local_process()
         self._proc.stdin.write("\x03")
    def __init__(self, host, user, password, interpreter, cwd):
        SshMixin.__init__(self, host, user, password, interpreter, cwd)
        self._upload_main_backend()
        self._proc = self._start_main_backend()
        self._main_backend_is_fresh = True

        self._response_lock = threading.Lock()
        self._start_response_forwarder()
        BaseBackend.__init__(self)
Exemple #3
0
 def __init__(self, args):
     SshMixin.__init__(
         self, args["host"], args["user"], args["password"], args["interpreter"], args.get("cwd")
     )
     self._interpreter_launcher = args.get("interpreter_launcher", [])
     UnixMicroPythonBackend.__init__(self, args)