diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-09 23:37:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-09 23:37:02 +0100 |
commit | c313e6de8c06017739402ea89f55ce3b36ac0f2b (patch) | |
tree | 3fa4ae2b36e5b3820c8677c82cafd676f77aaced /src/ee/kicad/model.py | |
parent | 79b8525e776b27a1702a4eea6f3168bfd97a393a (diff) | |
download | ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.gz ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.bz2 ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.xz ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.zip |
o kicad-mkdeps: new tool, new -M option for kicad-gerber. Both output a
Makefile-compatible dependencies file.
Diffstat (limited to 'src/ee/kicad/model.py')
-rw-r--r-- | src/ee/kicad/model.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ee/kicad/model.py b/src/ee/kicad/model.py index 8a514cd..f6bd8c1 100644 --- a/src/ee/kicad/model.py +++ b/src/ee/kicad/model.py @@ -156,7 +156,8 @@ class Library(object): class Schematic(object): - def __init__(self): + def __init__(self, path): + self.path = path self._libraries = set() self._sheets = [] self._components = [] @@ -183,7 +184,7 @@ class Schematic(object): self._components.append(component) def get_component(self, ref, unit=1): - c = find_component(self, ref, unit) + c = self.find_component(ref, unit) if c: return c @@ -195,6 +196,7 @@ class Schematic(object): if c.ref == ref and unit == unit: return c + class Schematics(object): def __init__(self, schematics): self._schematics = schematics |