Skip to content

Commit

Permalink
add intelhex
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Feb 2, 2024
1 parent 0f88f45 commit 0042a56
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion esptool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@
import time
import traceback

from esptool.bin_image import intel_hex_to_bin
# 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.cmds import (
DETECTED_FLASH_SIZES,
chip_id,
Expand Down

0 comments on commit 0042a56

Please sign in to comment.