diff options
| author | iaz1607 <[email protected]> | 2023-11-30 12:16:39 +0300 |
|---|---|---|
| committer | iaz1607 <[email protected]> | 2023-11-30 12:56:46 +0300 |
| commit | 8951ddf780e02616cdb2ec54a02bc354e8507c0f (patch) | |
| tree | 478097488957d3b554e25868c972a959bb40d78e /build/scripts/gen_swiftc_output_map.py | |
| parent | a5acb7aa4ca5a4603215e878eb0cad786793262b (diff) | |
`build/scripts` ya style --py
Diffstat (limited to 'build/scripts/gen_swiftc_output_map.py')
| -rw-r--r-- | build/scripts/gen_swiftc_output_map.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/scripts/gen_swiftc_output_map.py b/build/scripts/gen_swiftc_output_map.py index 01ce85f2563..6811827ecd6 100644 --- a/build/scripts/gen_swiftc_output_map.py +++ b/build/scripts/gen_swiftc_output_map.py @@ -4,12 +4,13 @@ import sys def just_do_it(args): source_root, build_root, out_file, srcs = args[0], args[1], args[2], args[3:] - assert(len(srcs)) + assert len(srcs) result_obj = {} for src in srcs: result_obj[src] = {'object': src.replace(source_root, build_root) + '.o'} with open(out_file, 'w') as of: of.write(json.dumps(result_obj)) + if __name__ == '__main__': just_do_it(sys.argv[1:]) |
