mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/call_esptool_v5.0' into 'release/v5.0'
Tools: Fix esptool wrappers by avoiding importing the module (v5.0) See merge request espressif/esp-idf!21182
This commit is contained in:
commit
3d1c15cd94
@ -4,19 +4,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
try:
|
||||
sys.path.remove(os.path.dirname(os.path.realpath(__file__))) # do not import this script
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
try:
|
||||
import espefuse
|
||||
except ImportError:
|
||||
raise ModuleNotFoundError('No module named "espefuse" please install espefuse.py by running '
|
||||
'the install and export scripts.')
|
||||
|
||||
if __name__ == '__main__':
|
||||
espefuse._main() # type: ignore
|
||||
sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)
|
||||
|
@ -4,19 +4,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
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
|
||||
sys.exit(subprocess.run([sys.executable, '-m', 'espsecure'] + sys.argv[1:]).returncode)
|
||||
|
@ -4,19 +4,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
try:
|
||||
sys.path.remove(os.path.dirname(os.path.realpath(__file__))) # do not import this script
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
try:
|
||||
import esptool
|
||||
except ImportError:
|
||||
raise ModuleNotFoundError('No module named "esptool" please install esptool.py by running '
|
||||
'the install and export scripts.')
|
||||
|
||||
if __name__ == '__main__':
|
||||
esptool._main() # type: ignore
|
||||
sys.exit(subprocess.run([sys.executable, '-m', 'esptool'] + sys.argv[1:]).returncode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user