Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <swoboda1337@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
15 lines
384 B
Python
15 lines
384 B
Python
"""Print the ESP-IDF version of a given framework root.
|
|
|
|
Run via ``python <this file> <idf_framework_root>``. PYTHONPATH must include
|
|
``<idf_framework_root>/tools`` so ``idf_tools`` is importable.
|
|
"""
|
|
|
|
# pylint: disable=import-error # idf_tools is on PYTHONPATH at runtime only
|
|
|
|
import sys
|
|
|
|
from idf_tools import g, get_idf_version
|
|
|
|
g.idf_path = sys.argv[1]
|
|
print(get_idf_version())
|