From 8abf8051f8f6d2f656385de89841369254157a36 Mon Sep 17 00:00:00 2001 From: Marek Matej Date: Mon, 28 Jul 2025 21:06:11 +0200 Subject: [PATCH] west: tools.py: fix esptool location Since `tools/esptool_py` was removed and replaced by a python package, we don't need to to know its location anymore. Signed-off-by: Marek Matej --- west/tools.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/west/tools.py b/west/tools.py index 5bf8ee641d..add6b2e622 100644 --- a/west/tools.py +++ b/west/tools.py @@ -45,8 +45,6 @@ def cmd_exec(cmd, cwd=None, shell=False): def get_esp_serial_port(module_path): try: import serial.tools.list_ports - esptool_path = os.path.join(module_path, 'tools', 'esptool_py') - sys.path.insert(0, esptool_path) import esptool ports = list(sorted(p.device for p in serial.tools.list_ports.comports())) # high baud rate could cause the failure of creation of the connection