Skip to content

Commit bc56063

Browse files
author
Jacob Erickson
committed
Add yaml extract from png
1 parent 75716d3 commit bc56063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wireviz/wireviz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ def main():
247247

248248
if ".png" in args.input_file:
249249
yaml_input = read_yaml_from_png(args.input_file.replace('.png',''))
250+
with open(args.input_file.replace('.png','_out.yaml'),'w') as fh:
251+
fh.write(yaml_input) # Extract yaml to separate file
250252
else:
251253
with open_file_read(args.input_file) as fh:
252254
yaml_input = fh.read()

0 commit comments

Comments
 (0)