Skip to content

Commit 45984e2

Browse files
authored
Small tweak to extract_configs.py (#1776)
Always write the path as "abosolute" (relative to the root of pico-sdk) as that makes searching for it (when building the RP2040 datasheet) much faster. This matches the behaviour of extract_build_defines.py and extract_cmake_configs.py
1 parent b3bf690 commit 45984e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/extract_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ def ValidateAttrs(config_attrs, file_path, linenum):
219219

220220
writer.writeheader()
221221
for config_name, config_obj in sorted(all_configs.items()):
222-
writer.writerow({'name': config_name, 'location': '{}:{}'.format(config_obj['filename'], config_obj['line_number']), 'description': config_obj['description'], **config_obj['attrs']})
222+
writer.writerow({'name': config_name, 'location': '/{}:{}'.format(config_obj['filename'], config_obj['line_number']), 'description': config_obj['description'], **config_obj['attrs']})

0 commit comments

Comments
 (0)