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.
This commit is contained in:
Campbell Barton 2023-07-31 19:57:27 +10:00
parent c2dfa1a066
commit 90e123c746
1 changed files with 1 additions and 1 deletions

View File

@ -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: