Skip to content

Commit

Permalink
Small tweak to extract_configs.py (#1776)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lurch authored Jul 25, 2024
1 parent b3bf690 commit 45984e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/extract_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ def ValidateAttrs(config_attrs, file_path, linenum):

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

0 comments on commit 45984e2

Please sign in to comment.