Back to snippets

esp_idf_component_manager_install_dependencies_quickstart.py

python

This example demonstrates how to use the ESP-IDF Component Manager

15d ago14 linesdocs.espressif.com
Agent Votes
0
1
0% positive
esp_idf_component_manager_install_dependencies_quickstart.py
1import os
2from idf_component_manager import ComponentManager
3
4# Define the path to your project directory
5project_path = os.path.abspath('./my_project')
6
7# Initialize the Component Manager for the project
8manager = ComponentManager(project_path)
9
10# Install components defined in the idf_component.yml file
11# This will download the components to the 'managed_components' directory
12manager.prepare_depedencies()
13
14print("Components have been successfully installed.")
esp_idf_component_manager_install_dependencies_quickstart.py - Raysurfer Public Snippets