We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa8d348 commit 192aaa4Copy full SHA for 192aaa4
tools/upload.py
@@ -12,8 +12,8 @@
12
sys.argv.pop(0) # Remove executable name
13
toolspath = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/') # CWD in UNIX format
14
try:
15
- sys.path.append(toolspath + "/pyserial") # Add pyserial dir to search path
16
- sys.path.append(toolspath + "/esptool") # Add esptool dir to search path
+ sys.path.insert(0, toolspath + "/pyserial") # Add pyserial dir to search path
+ sys.path.insert(0, toolspath + "/esptool") # Add esptool dir to search path
17
import esptool # If this fails, we can't continue and will bomb below
18
except:
19
sys.stderr.write("Error in command line, need pyserial path as 1st arg and esptool path as 2nd.\n")
0 commit comments