"""Print the ESP-IDF version of a given framework root. Run via ``python ``. PYTHONPATH must include ``/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())