Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
1a550b8e
Commit
1a550b8e
authored
Nov 17, 2014
by
TomCC
Committed by
Wayne Stambaugh
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Python BOM script bug when output file cannot be opened. (fixes:lp:1391904)
parent
1ebaf137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bom_csv_grouped_by_value.py
scripts/bom-in-python/bom_csv_grouped_by_value.py
+2
-1
No files found.
scripts/bom-in-python/bom_csv_grouped_by_value.py
View file @
1a550b8e
...
...
@@ -26,8 +26,9 @@ net = kicad_netlist_reader.netlist(sys.argv[1])
try
:
f
=
open
(
sys
.
argv
[
2
],
'w'
)
except
IOError
:
e
=
"Can't open output file for writing: "
+
sys
.
argv
[
2
]
print
(
__file__
,
":"
,
e
,
file
=
sys
.
stderr
)
f
=
stdout
f
=
s
ys
.
s
tdout
# subset the components to those wanted in the BOM, controlled
# by <configure> block in kicad_netlist_reader.py
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment