Skip to content

Commit 0bbe7c0

Browse files
committed
Try python3 on linux and mac
1 parent a207771 commit 0bbe7c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

platform.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ tools.esptool_py.cmd=esptool
1111
tools.esptool_py.cmd.linux=esptool.py
1212
tools.esptool_py.cmd.windows=esptool.exe
1313

14-
tools.esptool_py.network_cmd=python "{runtime.platform.path}/tools/espota.py" -r
14+
tools.esptool_py.network_cmd=python3 "{runtime.platform.path}/tools/espota.py" -r
1515
tools.esptool_py.network_cmd.windows="{runtime.platform.path}/tools/espota.exe" -r
1616

17-
tools.gen_esp32part.cmd=python "{runtime.platform.path}/tools/gen_esp32part.py"
17+
tools.gen_esp32part.cmd=python3 "{runtime.platform.path}/tools/gen_esp32part.py"
1818
tools.gen_esp32part.cmd.windows="{runtime.platform.path}/tools/gen_esp32part.exe"
1919

2020
compiler.path={runtime.tools.{build.tarch}-{build.target}-elf-gcc.path}/bin/
@@ -176,7 +176,7 @@ recipe.objcopy.partitions.bin.pattern={tools.gen_esp32part.cmd} -q "{build.path}
176176
## Create bin
177177
recipe.objcopy.bin.pattern_args=--chip {build.mcu} elf2image --flash_mode "{build.flash_mode}" --flash_freq "{build.flash_freq}" --flash_size "{build.flash_size}" -o "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.elf"
178178
recipe.objcopy.bin.pattern="{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.objcopy.bin.pattern_args}
179-
recipe.objcopy.bin.pattern.linux=python "{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.objcopy.bin.pattern_args}
179+
recipe.objcopy.bin.pattern.linux=python3 "{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.objcopy.bin.pattern_args}
180180

181181
## Save bin
182182
recipe.output.tmp_file={build.project_name}.bin
@@ -194,5 +194,5 @@ tools.esptool_py.upload.params.verbose=
194194
tools.esptool_py.upload.params.quiet=
195195
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x10000 "{build.path}/{build.project_name}.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" {upload.extra_flags}
196196
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
197-
tools.esptool_py.upload.pattern.linux=python "{path}/{cmd}" {upload.pattern_args}
197+
tools.esptool_py.upload.pattern.linux=python3 "{path}/{cmd}" {upload.pattern_args}
198198
tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"

0 commit comments

Comments
 (0)