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/order | |
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/order')
-rw-r--r-- | src/ee/order/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ee/order/__init__.py b/src/ee/order/__init__.py index 368ea7a..5350667 100644 --- a/src/ee/order/__init__.py +++ b/src/ee/order/__init__.py @@ -20,8 +20,8 @@ class PartInfo(object): return self.part.idProp == other.part.idProp -def create_order(schematic_dir: Path, out_dir: Path, part_db_dirs: List[Path], fail_on_missing_parts: bool): - sch_db = load_db(schematic_dir) +def create_order(schematic_path: Path, out_path: Path, part_db_dirs: List[Path], fail_on_missing_parts: bool): + sch_db = load_db(schematic_path) dbs = [(path.parent.name, load_db(path)) for path in part_db_dirs] @@ -85,4 +85,4 @@ def create_order(schematic_dir: Path, out_dir: Path, part_db_dirs: List[Path], f out_parts.add_entry(part, True) print("Saving {} work parts".format(out_parts.size())) - save_db(out_dir, out_parts) + save_db(out_path, out_parts) |