Skip to content

Commit

Permalink
Check panel filename
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 28, 2025
1 parent 0a1d5a9 commit 8b7a52b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ def __init__(self, panelFilename):
"""
self.errors: List[Tuple[KiPoint, str]] = []

if not panelFilename.endswith(".kicad_pcb"):
raise PanelError("Panel filename has to have .kicad_pcb suffix")

self.filename = panelFilename
self.board = pcbnew.NewBoard(panelFilename)
self.sourcePaths = set() # A set of all board files that were appended to the panel
Expand Down

0 comments on commit 8b7a52b

Please sign in to comment.