Add yaml extract from png
This commit is contained in:
parent
130ce33dce
commit
df9abf2558
@ -254,6 +254,8 @@ def main():
|
|||||||
|
|
||||||
if ".png" in args.input_file:
|
if ".png" in args.input_file:
|
||||||
yaml_input = read_yaml_from_png(args.input_file.replace('.png',''))
|
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:
|
else:
|
||||||
with open_file_read(args.input_file) as fh:
|
with open_file_read(args.input_file) as fh:
|
||||||
yaml_input = fh.read()
|
yaml_input = fh.read()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user