aboutsummaryrefslogtreecommitdiff
path: root/src/ee/element14
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/element14')
-rw-r--r--src/ee/element14/search_parts.py8
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()))