aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-15 14:55:15 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-15 14:55:15 +0100
commit237a6faa8a23826e68bbc00bc107b2d6f97235d0 (patch)
treefe1a6a6b1a4ed991a6eacd9ec6960325db3f9e4f /src/ee/tools
parent3523190bb7ca1c38caea3a1aae51062d22e56b09 (diff)
downloadee-python-237a6faa8a23826e68bbc00bc107b2d6f97235d0.tar.gz
ee-python-237a6faa8a23826e68bbc00bc107b2d6f97235d0.tar.bz2
ee-python-237a6faa8a23826e68bbc00bc107b2d6f97235d0.tar.xz
ee-python-237a6faa8a23826e68bbc00bc107b2d6f97235d0.zip
Refactoring:
o Renaming part.id to part.uri. Changing to URIs and use that as an identifier if the part is known. Schematic part does not have an URI. o Merging <schema-reference> and <part-numbers> into <references> o Creating <part-uri> as a possible <reference>. Used by order to point to other parts.
Diffstat (limited to 'src/ee/tools')
-rw-r--r--src/ee/tools/create_order.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ee/tools/create_order.py b/src/ee/tools/create_order.py
index 8ca7e05..8941fcd 100644
--- a/src/ee/tools/create_order.py
+++ b/src/ee/tools/create_order.py
@@ -1,5 +1,4 @@
import argparse
-import sys
from pathlib import Path
from ee.order import create_order
@@ -24,6 +23,4 @@ args = parser.parse_args()
part_db_dirs = [Path(part_db) for part_db in args.part_db]
fail_on_missing_parts = False
-ret = create_order(Path(args.schematic), Path(args.out), part_db_dirs, fail_on_missing_parts)
-
-sys.exit(1 if ret is False else 0)
+create_order(Path(args.schematic), Path(args.out), part_db_dirs, fail_on_missing_parts)