From df9abf25588037748c9634581b0bf4b84185754a Mon Sep 17 00:00:00 2001 From: Jacob Erickson Date: Sat, 8 Jan 2022 12:03:09 -0800 Subject: [PATCH] Add yaml extract from png --- src/wireviz/wireviz.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wireviz/wireviz.py b/src/wireviz/wireviz.py index 19eb75a..a970b93 100755 --- a/src/wireviz/wireviz.py +++ b/src/wireviz/wireviz.py @@ -254,6 +254,8 @@ def main(): if ".png" in args.input_file: yaml_input = read_yaml_from_png(args.input_file.replace('.png','')) + with open(args.input_file.replace('.png','_out.yaml'),'w') as fh: + fh.write(yaml_input) # Extract yaml to separate file else: with open_file_read(args.input_file) as fh: yaml_input = fh.read()