[iBoM] Changed to use will_filter_pcb_components

This commit is contained in:
Salvador E. Tropea 2022-12-26 10:45:54 -03:00
parent 2282334986
commit e82049cdea
2 changed files with 13 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class IBoMOptions(VariantOptions):
ori_extra_data_file = self.extra_data_file
net_dir = None
pcb_name = GS.pcb_file
if self._comps:
if self.will_filter_pcb_components():
# Write a custom netlist to a temporal dir
net_dir = mkdtemp(prefix='tmp-kibot-ibom-')
netlist = os.path.join(net_dir, GS.pcb_basename+'.xml')

View File

@ -0,0 +1,12 @@
# Example KiBot config file
kibot:
version: 1
import:
- file: battery_pack_sub_pcbs.kibot.yaml
outputs:
- name: 'interactive_bom'
comment: "Interactive Bill of Materials (HTML)"
type: ibom
dir: BoM