fix for bom_writer.py
This commit is contained in:
parent
d8ff6a9d2b
commit
ea08b7fc50
|
|
@ -35,14 +35,13 @@ def WriteBoM(filename, groups, net, headings = columns.ColumnList._COLUMNS_DEFAU
|
||||||
#remove any headings that appear in the ignore[] list
|
#remove any headings that appear in the ignore[] list
|
||||||
headings = [h for h in headings if not h.lower() in [i.lower() for i in prefs.ignore]]
|
headings = [h for h in headings if not h.lower() in [i.lower() for i in prefs.ignore]]
|
||||||
|
|
||||||
#make a temporary copy of the output file
|
|
||||||
TmpFileCopy(filename)
|
|
||||||
|
|
||||||
#if no extension is given, assume .csv (and append!)
|
#if no extension is given, assume .csv (and append!)
|
||||||
|
|
||||||
if len(filename.split('.')) < 2:
|
if len(filename.split('.')) < 2:
|
||||||
filename += ".csv"
|
filename += ".csv"
|
||||||
|
|
||||||
|
#make a temporary copy of the output file
|
||||||
|
TmpFileCopy(filename)
|
||||||
|
|
||||||
ext = filename.split('.')[-1].lower()
|
ext = filename.split('.')[-1].lower()
|
||||||
|
|
||||||
result = False
|
result = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue