feat: use script dir for default bootloader path

This commit is contained in:
2026-06-29 14:09:49 +08:00
parent afe5512f54
commit 49f84396bd
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
@echo off
REM GD32E230 firmware tool entry
python "%~dp0gd32e230_firmware_tool.py" %*
+2 -1
View File
@@ -44,7 +44,8 @@ CHIP_CONFIG = {
}
DEFAULT_CHIP = "F8"
DEFAULT_BOOTLOADER = "gd32e230f8_bootloader_hulk.bin"
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
DEFAULT_BOOTLOADER = os.path.join(SCRIPT_DIR, "gd32e230f8_bootloader_hulk.bin")
# ═══════════════════════════════════════════════════════════