From 237a6faa8a23826e68bbc00bc107b2d6f97235d0 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 15 Mar 2019 14:55:15 +0100 Subject: 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 and into o Creating as a possible . Used by order to point to other parts. --- src/ee/tools/create_order.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ee/tools') 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) -- cgit v1.2.3