From 4520fee87568e879408c40879089f1be7bdd0319 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Thu, 14 Apr 2022 11:08:20 +0200 Subject: [PATCH] Tools: IDF_TOOLS_PATH environment variable should change the constraint file path --- tools/idf_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 7005b31be6..9793c7a1f4 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -1644,7 +1644,7 @@ def get_requirements(new_features): # type: (str) -> list[str] def get_constraints(idf_version): # type: (str) -> str constraint_file = 'espidf.constraints.v{}.txt'.format(idf_version) - constraint_path = os.path.join(os.path.expanduser(IDF_TOOLS_PATH_DEFAULT), constraint_file) + constraint_path = os.path.join(global_idf_tools_path or '', constraint_file) constraint_url = '/'.join([IDF_DL_URL, constraint_file]) temp_path = constraint_path + '.tmp'