mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-19 11:45:49 +00:00
19 lines
510 B
Python
Executable File
19 lines
510 B
Python
Executable File
#!/usr/bin/env python
|
|
#
|
|
# SPDX-FileCopyrightText: 2017-2025 Espressif Systems (Shanghai) CO LTD
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
import subprocess
|
|
import sys
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
import esp_idf_size # noqa: F401
|
|
|
|
except ImportError:
|
|
print('WARNING: esp-idf-size not installed, please run the install script to install it', file=sys.stderr)
|
|
raise SystemExit(1)
|
|
|
|
sys.exit(subprocess.run([sys.executable, '-m', 'esp_idf_size'] + sys.argv[1:]).returncode)
|