From 37e4be24129b6980e3e9fced7345d4a596af3d58 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 14 Apr 2019 19:41:30 +0200 Subject: digikey: o More flexibility, making room for the multiple digikey stores. o Removing URLs from core code. new tools: split_parts_by_supplier. --- src/ee/tools/digikey_search_parts.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ee/tools/digikey_search_parts.py') diff --git a/src/ee/tools/digikey_search_parts.py b/src/ee/tools/digikey_search_parts.py index 6cf104d..28ccbb9 100644 --- a/src/ee/tools/digikey_search_parts.py +++ b/src/ee/tools/digikey_search_parts.py @@ -15,9 +15,15 @@ parser.add_argument("--out", required=True, metavar="PART DB") +parser.add_argument("--store", + default="us", + metavar="STORE CODE") + args = parser.parse_args() project = Project.load() cache_dir = project.cache_dir / "digikey" -search_parts(Path(args.in_path), Path(args.out), cache_dir) +store_code = args.store + +search_parts(Path(args.in_path), Path(args.out), cache_dir, store_code) -- cgit v1.2.3