Skip to content

Commit

Permalink
fix: Fix #233 by importing active_logger into schematic generation …
Browse files Browse the repository at this point in the history
…code for KiCad 6, 7, 8.
  • Loading branch information
devbisme committed Dec 4, 2024
1 parent f0e29f3 commit 1889bfb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/skidl/tools/kicad6/gen_schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,11 @@ def gen_schematic(
"""

import skidl
from skidl.logger import active_logger
from skidl.tools import tool_modules
from skidl.schematics.node import Node

active_logger.warning("Schematic generation is not implemented for KiCad version 8.")
active_logger.warning("Schematic generation is not implemented for KiCad version 6.")
return

tool = options.get("tool", skidl.config.tool)
Expand Down
3 changes: 2 additions & 1 deletion src/skidl/tools/kicad7/gen_schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,10 +700,11 @@ def gen_schematic(
"""

import skidl
from skidl.logger import active_logger
from skidl.tools import tool_modules
from skidl.schematics.node import Node

active_logger.warning("Schematic generation is not implemented for KiCad version 8.")
active_logger.warning("Schematic generation is not implemented for KiCad version 7.")
return

tool = options.get("tool", skidl.config.tool)
Expand Down
1 change: 1 addition & 0 deletions src/skidl/tools/kicad8/gen_schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ def gen_schematic(
"""

import skidl
from skidl.logger import active_logger
from skidl.tools import tool_modules
from skidl.schematics.node import Node

Expand Down

0 comments on commit 1889bfb

Please sign in to comment.