From 90e123c7461d4da5b9dd4e0d5a3565bb903bef52 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 31 Jul 2023 19:57:27 +1000 Subject: [PATCH] Tools: fix code_clean cleaning generated files When a relative build directory was passed in, code-clean wasn't filtering out generated sources and would clean them too. --- tools/utils_maintenance/code_clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/utils_maintenance/code_clean.py b/tools/utils_maintenance/code_clean.py index f1ef8880fa2..16bef473250 100755 --- a/tools/utils_maintenance/code_clean.py +++ b/tools/utils_maintenance/code_clean.py @@ -1973,7 +1973,7 @@ def main() -> int: parser = create_parser(edits_all, edits_all_default) args = parser.parse_args() - build_dir = args.build_dir + build_dir = os.path.normpath(os.path.abspath(args.build_dir)) regex_list = [] for expr in args.match: