diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 10:55:06 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 10:55:06 +0100 |
commit | 3523190bb7ca1c38caea3a1aae51062d22e56b09 (patch) | |
tree | db975c27c38c873a012d88a266ad82621b0859b2 /src/ee/element14 | |
parent | b67aa2b41247991e361dec0963670b4e5108410a (diff) | |
download | ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.gz ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.bz2 ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.xz ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.zip |
o Switching PartDb to serialize into many xml files into a single
<part-db> document.
Diffstat (limited to 'src/ee/element14')
-rw-r--r-- | src/ee/element14/search_parts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ee/element14/search_parts.py b/src/ee/element14/search_parts.py index 32abec1..55e8130 100644 --- a/src/ee/element14/search_parts.py +++ b/src/ee/element14/search_parts.py @@ -7,8 +7,8 @@ from ee.xml import bom_file_utils, types __all__ = ["search_parts"] -def search_parts(in_dir: Path, out_dir: Path, cache_dir: Path, config: Element14Config): - in_db = load_db(in_dir) +def search_parts(in_path: Path, out_path: Path, cache_dir: Path, config: Element14Config): + in_db = load_db(in_path) out_parts = PartDb() client = Element14Client(config, cache_dir) @@ -28,4 +28,4 @@ def search_parts(in_dir: Path, out_dir: Path, cache_dir: Path, config: Element14 di = out_part.distributor_infoProp print("Saving {} work parts".format(out_parts.size())) - save_db(out_dir, out_parts) + save_db(out_path, out_parts) |