diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 07:58:06 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 08:30:07 +0100 |
commit | b67aa2b41247991e361dec0963670b4e5108410a (patch) | |
tree | 67591b0f4cc6e767d0097c1afc3f08ad40ee19ea /src/ee/element14 | |
parent | 8d17fb5bc4b0dae0758e01a44d77d87acf2e686a (diff) | |
download | ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.gz ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.bz2 ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.xz ee-python-b67aa2b41247991e361dec0963670b4e5108410a.zip |
o Merging XSD files into one.
Diffstat (limited to 'src/ee/element14')
-rw-r--r-- | src/ee/element14/search_parts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ee/element14/search_parts.py b/src/ee/element14/search_parts.py index 724485c..32abec1 100644 --- a/src/ee/element14/search_parts.py +++ b/src/ee/element14/search_parts.py @@ -2,7 +2,7 @@ from pathlib import Path from ee.element14 import * from ee.part import PartDb, load_db, save_db -from ee.xml import bom_file_utils, bomFile +from ee.xml import bom_file_utils, types __all__ = ["search_parts"] @@ -22,9 +22,9 @@ def search_parts(in_dir: Path, out_dir: Path, cache_dir: Path, config: Element14 client.search(term="manuPartNum:" + query) - out_part = bomFile.Part(id=out_id, - distributor_info=bomFile.DistributorInfo(), - part_numbers=part.part_numbersProp) + out_part = types.Part(id=out_id, + distributor_info=types.DistributorInfo(), + part_numbers=part.part_numbersProp) di = out_part.distributor_infoProp print("Saving {} work parts".format(out_parts.size())) |