Skip to content

Commit

Permalink
Create DRU file if it doesn't exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 28, 2024
1 parent 14f74e8 commit 3cb3720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def makeLayersVisible(self):
pass

def writeCustomDrcRules(self):
with open(self.getDruFilepath(), "w", encoding="utf-8") as f:
with open(self.getDruFilepath(), "w+", encoding="utf-8") as f:
f.write("(version 1)\n\n")
for r in self.customDRCRules:
f.write(str(r))
Expand Down

0 comments on commit 3cb3720

Please sign in to comment.