diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 22:46:45 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 22:53:42 +0200 |
commit | 5f3623b8dd26b37b9ea6011bf71467b2a608b5ff (patch) | |
tree | 00fdb064f9116c5bf307f8b9815500487d86482b /src/ee/tools/init.py | |
parent | 148ff60aa5a211292661e16ddba0f6fced85f372 (diff) | |
download | ee-python-5f3623b8dd26b37b9ea6011bf71467b2a608b5ff.tar.gz ee-python-5f3623b8dd26b37b9ea6011bf71467b2a608b5ff.tar.bz2 ee-python-5f3623b8dd26b37b9ea6011bf71467b2a608b5ff.tar.xz ee-python-5f3623b8dd26b37b9ea6011bf71467b2a608b5ff.zip |
common_fact_types: Adding key for footprint.
functions:
o Changing the structure of the functions, they're now factories that
will be given kwargs and must return a function that processes the
parts.
o Adding new function to default set; 'map_footprint' that maps the
KiCAD footprints to common footprints.
part_validate_parts: Using only common keys.
Diffstat (limited to 'src/ee/tools/init.py')
-rw-r--r-- | src/ee/tools/init.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ee/tools/init.py b/src/ee/tools/init.py index 156d1b7..6d7908e 100644 --- a/src/ee/tools/init.py +++ b/src/ee/tools/init.py @@ -25,6 +25,9 @@ def init_kicad_project(basedir: Path, cfg, args): if pcb_file.is_file(): cfg["kicad-project"]["pcb"] = str(pcb_file) + + cfg["kicad-project"]["functions"] = "ee.kicad.functions.default" + cfg["kicad-project"]["function-arguments"] = "" else: print("Found more than one kicad project file.") |