예제 #1
0
 def _get_launcher_with_args(self):
     return [
         "-m",
         "thonny.plugins.cpython_ssh",
         repr({
             "host": self._host,
             "user": self._user,
             "password": get_ssh_password("ssh"),
             "interpreter": self._remote_interpreter,
             "cwd": self._get_initial_cwd(),
         }),
     ]
예제 #2
0
    def _get_launcher_with_args(self):
        import thonny.plugins.micropython.os_mp_backend

        args = {
            "cwd": get_workbench().get_option("SshMicroPython.cwd") or "",
            "interpreter": self._mp_executable,
            "api_stubs_path": self._get_api_stubs_path(),
            "host": self._host,
            "user": self._user,
            "password": get_ssh_password("SshMicroPython"),
        }

        args.update(self._get_time_args())

        cmd = [
            thonny.plugins.micropython.os_mp_backend.__file__,
            repr(args),
        ]
        return cmd