Skip to content

Commit

Permalink
Yep… Probably works on Windows and iOS too…
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBlick committed Oct 7, 2014
1 parent 735fd23 commit bf04f3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pcbPanelize
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# -*- coding: utf-8 -*-

from pcbnew import LoadBoard, DRAWSEGMENT, DIMENSION, Edge_Cuts, wxPoint, \
FromMils, Cast_to_BOARD_ITEM
FromMils, GetKicadConfigPath
from os import path as pt
class panelizePCB:
def __init__(self):
Expand Down Expand Up @@ -108,10 +108,10 @@ class panelizePCB:
vect = wxPoint(x*(vx+spaceX), y*(vy+spaceY))
for Item in self.lsItems:
if Item.remove:
continue # do not clone edge lines, it will be exchanged with generated grid
continue
elif self.brdDrawInEdge(Item, bd) or(type(Item) is DIMENSION):
Item.remove = True
continue # do not clone edge lines, it will be exchanged with generated grid
continue # do not clone dimmensions or edge lines, a last one will be exchanged with generated grid
newItem = Item.Duplicate()
pcb.Add(newItem)
newItem.Move(vect)
Expand Down Expand Up @@ -238,7 +238,7 @@ class panelizePCB:
def appCfgLoad(self):
ui = self.ui
self.cfg = {}
self.cfgFileName = "%s/%s.conf" % (pt.expanduser('~/.config/kicad'), pt.basename(pt.abspath(__file__)))
self.cfgFileName = "%s/%s.conf" % (GetKicadConfigPath(), pt.basename(pt.abspath(__file__)))
print("cfg:%s" % self.cfgFileName.replace(pt.expanduser('~'), '~'))
if pt.isfile(self.cfgFileName):
hFileCfg = open(self.cfgFileName, 'r')
Expand Down

0 comments on commit bf04f3d

Please sign in to comment.