Small tweak to extract_configs.py (#1776)
Some checks failed
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled

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
This commit is contained in:
Andrew Scheller 2024-07-25 21:13:00 +01:00 committed by GitHub
parent b3bf690d0a
commit 45984e276f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,4 +219,4 @@ with open(outfile, 'w', newline='') as csvfile:
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']})