mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
[BREAKING] Update FS plugin info for python3 compat (#6807)
The FS uploader plugins need to be updated to use python3 and not python, or they will fail on Windows (or Linux boxes without an installed python2 interpreter). Update the documents to point to the new versions.
This commit is contained in:
committed by
GitHub
parent
32792483cc
commit
56fe2bfe73
@ -3,8 +3,8 @@
|
||||
# Wrapper for Arduino core / others that can call esptool.py possibly multiple times
|
||||
# Adds pyserial to sys.path automatically based on the path of the current file
|
||||
|
||||
# First parameter is pyserial path, second is esptool path, then a series of command arguments separated with --end
|
||||
# i.e. upload.py tools/pyserial tools/esptool erase_flash --end write_flash file 0x0 --end
|
||||
# First parameter is pyserial path, second is esptool path, then a series of command arguments
|
||||
# i.e. upload.py tools/pyserial tools/esptool write_flash file 0x0
|
||||
|
||||
import sys
|
||||
import os
|
||||
@ -42,9 +42,6 @@ while len(sys.argv):
|
||||
elif thisarg == 'erase_region':
|
||||
erase_addr = sys.argv.pop(0)
|
||||
erase_len = sys.argv.pop(0)
|
||||
elif thisarg == '--end':
|
||||
# Backwards compatibility with fs upload tools, eat --end
|
||||
pass
|
||||
elif thisarg == 'write_flash':
|
||||
write_addr = sys.argv.pop(0)
|
||||
binary = sys.argv.pop(0)
|
||||
|
Reference in New Issue
Block a user