tools/host_info_dump.py: fix UnboundLocalError: local variable 'vendor_specific_module_path' referenced before assignment
fix
Traceback (most recent call last):
File "/home/ubuntu20042/nuttxspace/nuttx/tools/host_info_dump.py", line 575, in <module>
header = generate_header(args)
File "/home/ubuntu20042/nuttxspace/nuttx/tools/host_info_dump.py", line 466, in generate_header
sys.path.append(os.path.abspath(vendor_specific_module_path))
UnboundLocalError: local variable 'vendor_specific_module_path' referenced before assignment
make: *** [tools/Unix.mk:644: host_info] Error 1
This commit is contained in:
parent
c9a150781c
commit
b52c122f2c
1 changed files with 7 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
# tools/host_sysinfo.py
|
||||
# tools/host_info_dump.py
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
|
@ -462,7 +462,6 @@ def generate_header(args):
|
|||
)[-1]
|
||||
if "esp" in arch_chip:
|
||||
vendor_specific_module_path = os.path.abspath("./tools/espressif")
|
||||
|
||||
sys.path.append(os.path.abspath(vendor_specific_module_path))
|
||||
vendor_specific_module = importlib.import_module("chip_info")
|
||||
get_vendor_info = getattr(vendor_specific_module, "get_vendor_info")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue