mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
Tools: IDF_TOOLS_PATH environment variable should change the constraint file path
This commit is contained in:
@@ -1644,7 +1644,7 @@ def get_requirements(new_features): # type: (str) -> list[str]
|
|||||||
|
|
||||||
def get_constraints(idf_version): # type: (str) -> str
|
def get_constraints(idf_version): # type: (str) -> str
|
||||||
constraint_file = 'espidf.constraints.v{}.txt'.format(idf_version)
|
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])
|
constraint_url = '/'.join([IDF_DL_URL, constraint_file])
|
||||||
temp_path = constraint_path + '.tmp'
|
temp_path = constraint_path + '.tmp'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user