Skip to content

Commit 2e89853

Browse files
[TMP] imported esptool from arduino-esp32
1 parent bac812c commit 2e89853

File tree

93 files changed

+6724
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+6724
-0
lines changed

tools/esptool/._esptool

212 Bytes
Binary file not shown.

tools/esptool/._esptool.py

212 Bytes
Binary file not shown.

tools/esptool/esptool.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python
2+
#
3+
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
4+
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
5+
#
6+
# SPDX-License-Identifier: GPL-2.0-or-later
7+
8+
# This executable script is a thin wrapper around the main functionality
9+
# in the esptool Python package
10+
11+
# When updating this script, please also update espefuse.py and espsecure.py
12+
13+
import contextlib
14+
import os
15+
import sys
16+
17+
if os.name != "nt":
18+
# Linux/macOS: remove current script directory to avoid importing this file
19+
# as a module; we want to import the installed esptool module instead
20+
with contextlib.suppress(ValueError):
21+
if sys.path[0].endswith("/bin"):
22+
sys.path.pop(0)
23+
sys.path.remove(os.path.dirname(sys.executable))
24+
25+
# Linux/macOS: delete imported module entry to force Python to load
26+
# the module from scratch; this enables importing esptool module in
27+
# other Python scripts
28+
with contextlib.suppress(KeyError):
29+
del sys.modules["esptool"]
30+
31+
import esptool
32+
33+
if __name__ == "__main__":
34+
esptool._main()

tools/esptool/esptool/.DS_Store

6 KB
Binary file not shown.

tools/esptool/esptool/._.DS_Store

120 Bytes
Binary file not shown.
212 Bytes
Binary file not shown.
212 Bytes
Binary file not shown.
212 Bytes
Binary file not shown.

tools/esptool/esptool/._cmds.py

212 Bytes
Binary file not shown.

tools/esptool/esptool/._loader.py

212 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)