Просмотр исходного кода

Merge branch 'bugfix/idf_tools_constr_path' into 'master'

Tools: IDF_TOOLS_PATH environment variable should change the constraint file path

See merge request espressif/esp-idf!17778
Roland Dobai 3 лет назад
Родитель
Сommit
d34e1e1fde
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tools/idf_tools.py

+ 1 - 1
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'