Skip to content

Commit

Permalink
Fix remote Python 3 (SSH) connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
aivarannamaa committed Jun 2, 2023
1 parent 18106ff commit 86a0316
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version history
4.1.0 (2023-06-02)
==================
* Fix MicroPython config page regression introduced in 4.1.0b1 (#2724, #2763)
* Fix remote Python 3 (SSH) connection error (regression introduced in 4.1.0b1)
* Fix code completion shortcut displayed in macOS menu
* Add command "Show esptool version" for ESP flasher
* Don't disconnect for ESP flasher commands which don't touch the device
Expand Down
6 changes: 4 additions & 2 deletions thonny/plugins/cpython_ssh/cps_back.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def _start_main_backend(self) -> RemoteProcess:
env = {"THONNY_USER_DIR": "~/.config/Thonny", "THONNY_FRONTEND_SYS_PATH": "[]"}
self._main_backend_is_fresh = True

cp_launcher_file = os.path.join(
os.path.dirname(os.path.dirname(__file__)), "cpython_backend", "cp_launcher.py"
cp_launcher_file = (
self._get_remote_program_directory()
+ "/"
+ "thonny/plugins/cpython_backend/cp_launcher.py"
)
args = [
self._target_interpreter,
Expand Down

0 comments on commit 86a0316

Please sign in to comment.