From 45984e276f85aa24d33aa0ab62ed1e6df96a0784 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Thu, 25 Jul 2024 21:13:00 +0100 Subject: [PATCH] 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 --- tools/extract_configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/extract_configs.py b/tools/extract_configs.py index e7e53ec5..edb90994 100755 --- a/tools/extract_configs.py +++ b/tools/extract_configs.py @@ -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']})