Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
402 B · 20 lines
Python
123456789101112131415161718192021from argparse import ArgumentParserfrom pathlib import Path
import backgroundremover.utilities as utilitiesfrom backgroundremover import bg
parser = ArgumentParser()
parser.add_argument('input', type=Path)parser.add_argument('output', type=Path)
args = parser.parse_args()
input_bytes = args.input.read_bytes()
output_bytes = bg.remove( input_bytes,)
args.output.write_bytes(output_bytes)