chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ba / backgroundremover / test-script.py
blob29af6fd76e80bff923577053b81f03d0821716a2
1 from argparse import ArgumentParser
2 from pathlib import Path
4 import backgroundremover.utilities as utilities
5 from backgroundremover import bg
7 parser = ArgumentParser()
9 parser.add_argument('input', type=Path)
10 parser.add_argument('output', type=Path)
12 args = parser.parse_args()
14 input_bytes = args.input.read_bytes()
16 output_bytes = bg.remove(
17 input_bytes,
20 args.output.write_bytes(output_bytes)