Skip to content

Commit

Permalink
Add yaml extract from png
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Erickson committed Jun 7, 2021
1 parent 75716d3 commit bc56063
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,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()
Expand Down

0 comments on commit bc56063

Please sign in to comment.