diff options
Diffstat (limited to 'demo/doit')
-rw-r--r-- | demo/doit/dodo.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index 780f2b9..74b621b 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -1,8 +1,10 @@ from ee.bom.doit import * from ee.digikey.doit import * -from ee.doit import configure_logging +from ee.doit import configure_logging, ReportCollection from ee.ds import DataSetManager from ee.kicad.doit import * +# noinspection PyUnresolvedReferences +from ee.report.doit import * def configure_kicad(): @@ -22,6 +24,11 @@ def configure_digikey(): doit_config.configure(data_set_manager=dsm) +def configure_report(): + from ee.report.doit import doit_config + doit_config.configure(data_set_manager=dsm, report_collection=report_collection, extra_config=extra_config) + + # Configure DoIt configure_logging() @@ -31,7 +38,10 @@ prj = "demo" sch = "{}.sch".format(prj) kicad_pcb = "{}.kicad_pcb".format(prj) +extra_config = dict(report_dir="docs/report") + dsm = DataSetManager("ee") +report_collection = ReportCollection() kicad_footprint = "kicad-footprint" dsm.register_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kicad-footprint.csv") @@ -39,6 +49,7 @@ dsm.register_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kica configure_kicad() configure_bom() configure_digikey() +configure_report() def task_orders(): |