Skip to content

Commit 719327a

Browse files
set-softqu1ck
authored andcommitted
Fixed no text variables expansion in title_block.date
1 parent b07e364 commit 719327a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,15 @@ def parse(self):
675675
title = title_block.GetTitle()
676676
revision = title_block.GetRevision()
677677
company = title_block.GetCompany()
678+
file_date = title_block.GetDate()
678679
if (hasattr(self.board, "GetProject") and
679680
hasattr(pcbnew, "ExpandTextVars")):
680681
project = self.board.GetProject()
681682
title = pcbnew.ExpandTextVars(title, project)
682683
revision = pcbnew.ExpandTextVars(revision, project)
683684
company = pcbnew.ExpandTextVars(company, project)
685+
file_date = pcbnew.ExpandTextVars(file_date, project)
684686

685-
file_date = title_block.GetDate()
686687
if not file_date:
687688
file_mtime = os.path.getmtime(self.file_name)
688689
file_date = datetime.fromtimestamp(file_mtime).strftime(

0 commit comments

Comments
 (0)