mirror of https://github.com/rusefi/KiCad-Diff.git
Missing import and graphics directive added
This commit is contained in:
parent
aac5dd7994
commit
352275339a
|
@ -1515,7 +1515,7 @@ if __name__ == "__main__":
|
|||
if (SCMS == ""):
|
||||
print("You need to have at least one SCM program path identified in lines 32 - 40")
|
||||
exit()
|
||||
gui = tk.Tk(SCMS)
|
||||
gui = tk.Tk(':0.0', SCMS)
|
||||
gui.withdraw()
|
||||
gui.update()
|
||||
Select = Select(gui)
|
||||
|
|
|
@ -5,12 +5,14 @@ Kicad plot pcb file.
|
|||
Plot variety of svg files in plot directory
|
||||
'''
|
||||
|
||||
import pcbnew
|
||||
from pcbnew import *
|
||||
|
||||
|
||||
|
||||
def processBoard(boardName, plotDir): # Load board and initialize plot controller
|
||||
|
||||
board = LoadBoard(boardName)
|
||||
board = pcbnew.LoadBoard(boardName)
|
||||
boardbox = board.ComputeBoundingBox()
|
||||
boardxl = boardbox.GetX()
|
||||
boardyl = boardbox.GetY()
|
||||
|
|
Loading…
Reference in New Issue