56 parser = argparse.ArgumentParser()
57 parser.add_argument(
'--source-root', type=str, required=
True, help=
'The source root.')
58 args = parser.parse_args()
60 assert os.path.exists(args.source_root)
64 for root, _, files
in os.walk(os.path.abspath(args.source_root)):
66 file_path = os.path.join(root, file)
68 source_files.add(file_path)
70 for source_file
in source_files:
72 raise Exception(
'Could not find valid license block in source ', source_file)