Kaydet (Commit) 558c09e4 authored tarafından Guido van Rossum's avatar Guido van Rossum

Script to write MIF files from ref*.{book,doc}

üst 58a78569
#! /bin/env python
"""Script to write MIF files from ref.book and ref*.doc."""
import os
import glob
def main():
pipe = os.popen("fmbatch", 'w')
for i in ['ref.book'] + glob.glob('ref*.doc'):
cmd = "Open %s\nSaveAs m %s %s.MIF\n" % (i, i, os.path.splitext(i)[0])
print cmd
pipe.write(cmd)
pipe.write("Quit\n")
if __name__ == '__main__':
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment