diff options
Diffstat (limited to 'src/ee/kicad/read_schematic.py')
-rw-r--r-- | src/ee/kicad/read_schematic.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ee/kicad/read_schematic.py b/src/ee/kicad/read_schematic.py index 275f536..55ed148 100644 --- a/src/ee/kicad/read_schematic.py +++ b/src/ee/kicad/read_schematic.py @@ -1,4 +1,5 @@ import shlex +from ee import EeException from ee.kicad.model import * @@ -7,11 +8,11 @@ def read_schematic(path): sheet = None def descr_section(lines): - print("descr_section: len={}".format(len(lines))) + # print("descr_section: len={}".format(len(lines))) pass def comp_section(lines): - print("comp_section: len={}".format(len(lines))) + # print("comp_section: len={}".format(len(lines))) timestamp = None position = None library = None @@ -85,7 +86,7 @@ def read_schematic(path): if section_name: if line.startswith("$End"): - print("END SECTION: {}".format(section_name)) + # print("END SECTION: {}".format(section_name)) if section_name == "$Comp": comp_section(section) elif section_name == "$Descr": @@ -105,7 +106,7 @@ def read_schematic(path): schematic.add_library(line[5:]) elif line.startswith("$"): section_name = parts[0] - print("SECTION: {}".format(section_name)) + # print("SECTION: {}".format(section_name)) section = [] elif line == "Entry Wire Line": f.readline() # ignore the next line for now @@ -124,7 +125,7 @@ def read_schematic(path): elif parts[0:2] == ["Connection", "~"]: pass else: - print("line={}, len={}, wat={}".format(line, len(line), parts[0:3])) + # print("line={}, len={}, wat={}".format(line, len(line), parts[0:3])) raise EeException("Bad line: {}".format(line)) return schematic |