X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml-to-bulletyaml;fp=bulletml-to-bulletyaml;h=c5f8c561e288284edd09ee3e8998eb7e40e32cff;hp=0000000000000000000000000000000000000000;hb=29b24c8fc17a3bdcccd1ac853eee5b90c6fd0856;hpb=4f0e7df685d8d25cd0f1bbce7d6330f87c8cf178 diff --git a/bulletml-to-bulletyaml b/bulletml-to-bulletyaml new file mode 100755 index 0000000..c5f8c56 --- /dev/null +++ b/bulletml-to-bulletyaml @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +import sys +import yaml + +from bulletml import BulletML, bulletyaml + +def main(argv): + for filename in argv: + print yaml.dump(BulletML.FromDocument(open(filename, "rU"))) + +if __name__ == "__main__": + main(sys.argv[1:])