From 22131d8ce571d0acb280c886efa6ed7fba312c32 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:21:50 +0100 Subject: [PATCH] Update __init__.py --- esptool/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/esptool/__init__.py b/esptool/__init__.py index 4f7a6f1d9..021ce08f5 100644 --- a/esptool/__init__.py +++ b/esptool/__init__.py @@ -38,14 +38,7 @@ import time import traceback -# Add vendor directory to module search path -# embed the module "intelhex" -parent_dir = os.path.abspath(os.path.dirname(__file__)) -vendor_dir = os.path.join(parent_dir, 'vendor') - -sys.path.append(vendor_dir) - -from intelhex import intel_hex_to_bin +from esptool.bin_image import intel_hex_to_bin from esptool.cmds import ( DETECTED_FLASH_SIZES, chip_id,