From 5e90cb59d036d307f0ef160c248d418c554d32f6 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 10 Oct 2021 17:48:19 -0500 Subject: [PATCH] Process files in command line order --- python/scripts/ingest_ptp_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2