Skip to content

Commit

Permalink
Merge pull request #701 from nguyen-v/fix_colon
Browse files Browse the repository at this point in the history
[PCB Print][Fixed] Allow colons in sheet and layer_var expansions
  • Loading branch information
set-soft authored Oct 23, 2024
2 parents f1540db + 3b0dfdd commit bb2caad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kibot/optionable.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ def expand_filename_both(self, name, is_sch=True, make_safe=True):
logger.debug('Expanded `{}`'.format(name))
return name

def expand_filename_pcb(self, name):
def expand_filename_pcb(self, name, make_safe=True):
""" Expands %* values in filenames.
Uses data from the PCB. """
# This member can be called with a preflight object
return Optionable.expand_filename_both(self, name, is_sch=False)
return Optionable.expand_filename_both(self, name, is_sch=False, make_safe=make_safe)

def expand_filename_sch(self, name):
""" Expands %* values in filenames.
Expand Down
2 changes: 1 addition & 1 deletion kibot/out_pcb_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def expand_sheet_patterns(self, parent, sheet, layers, layer=None):
sheet = sheet.replace('%ln', layer.layer)
sheet = sheet.replace('%ls', layer.suffix)
sheet = sheet.replace('%ld', layer.description)
return self.expand_filename_pcb(sheet)
return self.expand_filename_pcb(sheet, make_safe=False)

def config(self, parent):
super().config(parent)
Expand Down

0 comments on commit bb2caad

Please sign in to comment.