Skip to content

Commit

Permalink
Fixed CPL bug
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr committed Jan 15, 2020
1 parent 1d7841c commit bae58be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bom-cpl-plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def __lt__(self, other):
def setCustomFields(self, fields, suppliers):
for f in fields:
name = f.attrib['name']
if name == 'Supplier':
continue
if hasattr(self, name):
setattr(self, name, f.text)
if all((getattr(self, a) for a in getValid(self.Supplier))):
Expand Down Expand Up @@ -291,7 +293,7 @@ def copyCsv(input, output, headers):
writeCsv(sorted(suppliers), sorted(components), path)

print("")
print("Generating BOM csv file for:")
print("Generating BOM (Bill Of Materials) csv file for:")
for supplier in suppliers:
print("%s: %s" % (supplier, getOutput(path, supplier, g_bomext)))

Expand All @@ -312,7 +314,7 @@ def copyCsv(input, output, headers):
else:
print("")
print("*******************************************************************************")
print("Error can't retrieve a position file like:")
print("Error: Can't retrieve a position file like:")
for input in getInputs(path):
print(input)
print("*******************************************************************************")

0 comments on commit bae58be

Please sign in to comment.