19 lines
443 B
Python
19 lines
443 B
Python
#!/usr/bin/env python
|
|
import render
|
|
import glob
|
|
import os
|
|
import sys
|
|
reload(sys)
|
|
sys.setdefaultencoding("utf-8")
|
|
|
|
|
|
def main():
|
|
input_files = glob.glob(os.path.join(".", "ossa", "*.yaml"))
|
|
output_files = [x.replace(".yaml", ".rst") for x in input_files]
|
|
for old, new in zip(input_files, output_files):
|
|
with open(new, "w") as out:
|
|
out.write(render.render(old, "rst.jinja"))
|
|
|
|
if __name__ == '__main__':
|
|
main()
|