diff options
Diffstat (limited to 'src/ee/tools/init.py')
-rw-r--r-- | src/ee/tools/init.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ee/tools/init.py b/src/ee/tools/init.py index 81bdda3..f87c958 100644 --- a/src/ee/tools/init.py +++ b/src/ee/tools/init.py @@ -7,7 +7,6 @@ import configparser def init_kicad_project(basedir: Path, cfg): - print("basedir={}".format(basedir)) pro_files: List[Path] = [f for f in basedir.iterdir() if f.name.endswith(".pro")] if len(pro_files) == 0: @@ -30,11 +29,17 @@ def init_kicad_project(basedir: Path, cfg): print("Found more than one kicad project file.") +def init_seeed_opl(project: Project): + import ee.supplier.seeed + ee.supplier.seeed.init_project(project) + + def init(project_dir: Path, basedir: Path): cfg = configparser.ConfigParser() project = Project(project_dir, cfg) init_kicad_project(basedir, cfg) + init_seeed_opl(project) print("Saving project. Now run 'ee ninja' to generate Ninja build file") project.save() |