Write spec to disk as LIT JSON format.
(spec: Spec, path: str)
| 61 | |
| 62 | |
| 63 | def write_spec(spec: Spec, path: str): |
| 64 | """Write spec to disk as LIT JSON format.""" |
| 65 | with open(path, 'w') as fd: |
| 66 | fd.write(serialize.to_json(spec, indent=2)) |
| 67 | |
| 68 | |
| 69 | class SliceWrapper(object): |