Neo: fixed up script to point to the 'Fabrication' folder properly

Variants: able to use kibot variants, separate variants for: mech, sch,
and pcb outputs. This because a BOM variant does not affect the PCB, but it might affect the step file.
This commit is contained in:
ac
2025-04-29 21:29:05 +10:00
parent cf480237f5
commit ebee7ef48e
10 changed files with 201 additions and 99 deletions

View File

@@ -1,4 +1,5 @@
import csv
import os
import sys
from copy import deepcopy
from glob import glob
@@ -31,8 +32,9 @@ print("bottom Orig: ", bottomOrig)
output_dir = deepcopy(pcb_dir)
csv_files = glob(output_dir + "/*.csv")
print("CSV Files: ", csv_files)
if len(csv_files) < 1:
output_dir = "Fabrication/" + output_dir
output_dir = os.path.join(os.environ.get('CI_PROJECT_DIR', ''), '') + "Fabrication/" + output_dir
csv_files = glob(output_dir + "/*.csv")
input = next(filter(lambda f: KI_POS_SUFFIX in f, csv_files))