esptool: Include as a package, delete submodule

This commit is contained in:
radim.karnis
2022-04-08 16:26:36 +02:00
parent d6d34b27a8
commit 2bb7dc4471
12 changed files with 69 additions and 22 deletions
@@ -0,0 +1,22 @@
#
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import os
import sys
try:
sys.path.remove(os.path.dirname(os.path.realpath(__file__))) # do not import this script
except ValueError:
pass
try:
import espsecure
except ImportError:
raise ModuleNotFoundError('No module named "espsecure" please install espsecure.py by running '
'the install and export scripts.')
if __name__ == '__main__':
espsecure._main() # type: ignore