tests/resources/__main__.py
raw| 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 | |
| 4 | import argparse |
| 5 | |
| 6 | from tests.resources import get_resource |
| 7 | |
| 8 | parser = argparse.ArgumentParser( |
| 9 | description="decompress test resources and print their paths" |
| 10 | ) |
| 11 | parser.add_argument("name", nargs="+", help="resource name") |
| 12 | args = parser.parse_args() |
| 13 | |
| 14 | for name in args.name: |
| 15 | print(get_resource(name)) |