diff options
author | snermolaev <snermolaev@yandex-team.ru> | 2022-02-10 16:45:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:53 +0300 |
commit | 7353a3fdea9c67c256980c00a2b3b67f09b23a27 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /build/scripts/compile_jsrc.py | |
parent | 2015790ac9fcc04caab83fccc23ab2460310a797 (diff) | |
download | ydb-7353a3fdea9c67c256980c00a2b3b67f09b23a27.tar.gz |
Restoring authorship annotation for <snermolaev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/compile_jsrc.py')
-rw-r--r-- | build/scripts/compile_jsrc.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/build/scripts/compile_jsrc.py b/build/scripts/compile_jsrc.py index b0923cfbaf..8760e5eee9 100644 --- a/build/scripts/compile_jsrc.py +++ b/build/scripts/compile_jsrc.py @@ -1,24 +1,24 @@ -import argparse -import os -import tarfile - - -def parse_args(): - parser = argparse.ArgumentParser() - parser.add_argument('--input', nargs='*', required=True) - parser.add_argument('--output', required=True) - parser.add_argument('--prefix', required=True) - - return parser.parse_args() - - -def main(): - args = parse_args() - - with tarfile.open(args.output, 'w') as out: - for f in args.input: - out.add(f, arcname=os.path.relpath(f, args.prefix)) - - -if __name__ == '__main__': - main() +import argparse +import os +import tarfile + + +def parse_args(): + parser = argparse.ArgumentParser() + parser.add_argument('--input', nargs='*', required=True) + parser.add_argument('--output', required=True) + parser.add_argument('--prefix', required=True) + + return parser.parse_args() + + +def main(): + args = parse_args() + + with tarfile.open(args.output, 'w') as out: + for f in args.input: + out.add(f, arcname=os.path.relpath(f, args.prefix)) + + +if __name__ == '__main__': + main() |