MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / load_project_list

Function load_project_list

tools/progen_compile.py:38–50  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

36VERSION_YAML = os.path.join(daplink_dir, "records", "tools", "version.yaml")
37
38def load_project_list(path):
39 project_list = []
40 with open(path, 'r') as top_yaml:
41 try:
42 topdict = yaml.safe_load(top_yaml)
43 for dict_key in topdict:
44 if dict_key == 'projects':
45 for project in topdict[dict_key]:
46 project_list.append(project)
47 break
48 except yaml.YAMLError as ex:
49 print("Found yaml parse error", ex)
50 return project_list
51
52def get_core_count():
53 try:

Callers 1

progen_compile.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected