From: Jakob Cornell Date: Sun, 10 Oct 2021 22:48:19 +0000 (-0500) Subject: Process files in command line order X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e90cb59d036d307f0ef160c248d418c554d32f6;p=eros.git Process files in command line order --- diff --git a/python/scripts/ingest_ptp_json.py b/python/scripts/ingest_ptp_json.py index 3346c0c..1104530 100644 --- a/python/scripts/ingest_ptp_json.py +++ b/python/scripts/ingest_ptp_json.py @@ -11,7 +11,7 @@ import psycopg2 arg_parser = argparse.ArgumentParser() arg_parser.add_argument("paths", metavar = "path", nargs = "+") args = arg_parser.parse_args() -paths = set(map(pathlib.Path, args.paths)) +paths = list({pathlib.Path(a): None for a in args.paths}.keys()) # deduplicate # Fail fast if a path is wrong