Skip to content

Commit d3e90fe

Browse files
committed
Assume pcb file to be extra data file if not specified
Fixes #522
1 parent 8feaf6b commit d3e90fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,9 @@ def parse(self):
798798
self.config.dnp_field)
799799

800800
if not self.config.extra_data_file and need_extra_fields:
801-
self.logger.warn('Ignoring extra fields related config parameters '
802-
'since no netlist/xml file was specified.')
803-
need_extra_fields = False
801+
self.config.extra_data_file = self.file_name
802+
self.logger.warn('Assuming extra data file to be the pcb file '
803+
'since --extra-data-file was not specified.')
804804

805805
extra_field_data = None
806806
if (self.config.extra_data_file and

0 commit comments

Comments
 (0)