mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
check_examples_cmake_make: now it can run not only under idf path
This commit is contained in:
@@ -51,12 +51,15 @@ def get_idf_path(path, *paths):
|
|||||||
|
|
||||||
def _get_apps(target, build_system):
|
def _get_apps(target, build_system):
|
||||||
print("- Getting paths of apps")
|
print("- Getting paths of apps")
|
||||||
output = subprocess.check_output(
|
args = [sys.executable,
|
||||||
sys.executable + " " + os.getenv('IDF_PATH') +
|
get_idf_path('tools/find_apps.py'),
|
||||||
"/tools/find_apps.py -p examples --recursive --target %s --build-system %s"
|
'-p',
|
||||||
% (target, build_system),
|
get_idf_path('examples'),
|
||||||
shell=True).decode('utf-8')
|
'--recursive',
|
||||||
o_list = output.split("\n")
|
'--target', target,
|
||||||
|
'--build-system', build_system]
|
||||||
|
output = subprocess.check_output(args).decode('utf-8')
|
||||||
|
o_list = output.split('\n')
|
||||||
json_list = []
|
json_list = []
|
||||||
for j in o_list:
|
for j in o_list:
|
||||||
if j:
|
if j:
|
||||||
|
Reference in New Issue
Block a user